#define BENCHMARK_ADLER32(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(adler32, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, fptr); \
#define BENCHMARK_ADLER32_COPY(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(adler32_copy, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, fptr); \
#define BENCHMARK_ADLER32_BASELINE_COPY(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(adler32_copy, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, [](uint32_t init_sum, unsigned char *dst, \
#define BENCHMARK_COMPARE256(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(compare256, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, fptr); \
#define BENCHMARK_COMPARE256_RLE(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(compare256_rle, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, fptr); \
#define BENCHMARK_CRC32(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(crc32, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, fptr); \
#define BENCHMARK_CRC32_FOLD(name, resfunc, copyfunc, finfunc, support_flag) \
BENCHMARK_DEFINE_F(crc32_fc, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, resfunc, copyfunc, finfunc); \
#define BENCHMARK_INSERT_STRING(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(insert_string_bench, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("Function " #name " not supported"); \
} \
Bench(state, fptr); \
#define BENCHMARK_QUICK_INSERT_STRING(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(quick_insert_string_bench, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("Function " #name " not supported"); \
} \
Bench(state, fptr); \
#define BENCHMARK_SLIDEHASH(name, fptr, support_flag) \
BENCHMARK_DEFINE_F(slide_hash, name)(benchmark::State& state) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
state.SkipWithError("CPU does not support " #name); \
} \
Bench(state, fptr); \
#define TEST_ADLER32(name, func, support_flag) \
TEST_P(adler32_variant, name) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
GTEST_SKIP(); \
return; \
} \
#define TEST_COMPARE256(name, func, support_flag) \
TEST(compare256, name) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
GTEST_SKIP(); \
return; \
} \
#define TEST_COMPARE256_RLE(name, func, support_flag) \
TEST(compare256_rle, name) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
GTEST_SKIP(); \
return; \
} \
#define TEST_CRC32_FOLD(name, minlen, onlyzero, resfunc, copyfunc, finfunc, support_flag) \
TEST_P(crc32_fc_variant, name) { \
- if (!support_flag) { \
+ if (!(support_flag)) { \
GTEST_SKIP(); \
return; \
} \