From f3b00eca89ee923e4b03a950dee0d00da48e7001 Mon Sep 17 00:00:00 2001 From: Elias Kosunen Date: Sun, 16 Jun 2024 21:29:27 +0300 Subject: [PATCH] Disable benchmarks with scan_int_exhaustive_valid on a big endian environment --- benchmark/runtime/integer/single.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchmark/runtime/integer/single.cpp b/benchmark/runtime/integer/single.cpp index 074ab16a..2c8c4bd4 100644 --- a/benchmark/runtime/integer/single.cpp +++ b/benchmark/runtime/integer/single.cpp @@ -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 static void scan_int_single_scn_int_exhaustive_valid(benchmark::State& state) { @@ -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 static void scan_int_single_sstream(benchmark::State& state)