Skip to content

Commit 421715c

Browse files
committed
Added BENCHMARK_ARCH
1 parent bde60e4 commit 421715c

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

tests/benchmark/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ endforeach()
2828
if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64")
2929
message(STATUS "Enabling Arm Performance Libraries integration")
3030
include(${root}/cmake/aarch64InstructionFlags.cmake)
31-
add_compile_definitions(BENCHMARK=arm64)
31+
add_compile_definitions(BENCHMARK_ARCH=arm64)
3232

3333
else()
3434
include(${root}/cmake/x86_64InstructionFlags.cmake)
35-
add_compile_definitions(BENCHMARK=x86_64)
35+
add_compile_definitions(BENCHMARK_ARCH=x86_64)
3636
endif()
3737

3838
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

tests/benchmark/bm_macros.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,5 @@
2828
#define CONCAT_WITH_UNDERSCORE(...) \
2929
EXPAND2(CONCAT(BM_FUNC_NAME_HELPER, EXPAND2(COUNT_ARGS(__VA_ARGS__)))(__VA_ARGS__))
3030

31-
#if defined(CPU_FEATURES_ARCH_X86_64)
32-
#define BENCHMARK_ARCH x86_64
33-
#elif defined(CPU_FEATURES_ARCH_AARCH64)
34-
#if defined(OPT_ARMV9)
35-
#define BENCHMARK_ARCH arm_v9
36-
#else
37-
#define BENCHMARK_ARCH arm_v8
38-
#endif
39-
#else
40-
#define BENCHMARK_ARCH arm
41-
#endif
42-
4331
// Modify this macro to account for the extra BENCHMARK_ARCH parameter
4432
#define CONCAT_WITH_UNDERSCORE_ARCH(...) CONCAT_WITH_UNDERSCORE(__VA_ARGS__, BENCHMARK_ARCH)

0 commit comments

Comments
 (0)