Skip to content

Commit

Permalink
Disable benchmarks with scan_int_exhaustive_valid on a big endian env…
Browse files Browse the repository at this point in the history
…ironment
  • Loading branch information
eliaskosunen committed Jun 16, 2024
1 parent bdd6c09 commit f3b00ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmark/runtime/integer/single.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ BENCHMARK_TEMPLATE(scan_int_single_scn_int, int);
BENCHMARK_TEMPLATE(scan_int_single_scn_int, long long);
BENCHMARK_TEMPLATE(scan_int_single_scn_int, unsigned);

// scan_int_exhaustive_valid requires little-endian
#if !SCN_IS_BIG_ENDIAN
template <typename Int>
static void scan_int_single_scn_int_exhaustive_valid(benchmark::State& state)
{
Expand All @@ -129,6 +131,7 @@ static void scan_int_single_scn_int_exhaustive_valid(benchmark::State& state)
BENCHMARK_TEMPLATE(scan_int_single_scn_int_exhaustive_valid, int);
BENCHMARK_TEMPLATE(scan_int_single_scn_int_exhaustive_valid, long long);
BENCHMARK_TEMPLATE(scan_int_single_scn_int_exhaustive_valid, unsigned);
#endif

template <typename Int>
static void scan_int_single_sstream(benchmark::State& state)
Expand Down

0 comments on commit f3b00ec

Please sign in to comment.