@@ -103,32 +103,27 @@ use a 64-bit target such as x64 or 64-bit ARM.")
103103#ifdef __clang__
104104// clang does not have GCC push pop
105105// warning: clang attribute push can't be used within a namespace in clang up
106- // til 8.0 so TARGET_REGION and UNTARGET_REGION must be *outside* of a
106+ // til 8.0 so SIMDJSON_TARGET_REGION and SIMDJSON_UNTARGET_REGION must be *outside* of a
107107// namespace.
108- #define TARGET_REGION (T) \
108+ #define SIMDJSON_TARGET_REGION (T) \
109109 _Pragma(STRINGIFY( \
110110 clang attribute push(__attribute__((target(T))), apply_to = function)))
111- #define UNTARGET_REGION _Pragma(" clang attribute pop" )
111+ #define SIMDJSON_UNTARGET_REGION _Pragma(" clang attribute pop" )
112112#elif defined(__GNUC__)
113113// GCC is easier
114- #define TARGET_REGION (T) \
114+ #define SIMDJSON_TARGET_REGION (T) \
115115 _Pragma(" GCC push_options" ) _Pragma(STRINGIFY(GCC target(T)))
116- #define UNTARGET_REGION _Pragma(" GCC pop_options" )
116+ #define SIMDJSON_UNTARGET_REGION _Pragma(" GCC pop_options" )
117117#endif // clang then gcc
118118
119119#endif // x86
120120
121121// Default target region macros don't do anything.
122- #ifndef TARGET_REGION
123- #define TARGET_REGION (T)
124- #define UNTARGET_REGION
122+ #ifndef SIMDJSON_TARGET_REGION
123+ #define SIMDJSON_TARGET_REGION (T)
124+ #define SIMDJSON_UNTARGET_REGION
125125#endif
126126
127- // under GCC and CLANG, we use these two macros
128- #define TARGET_HASWELL TARGET_REGION(" avx2,bmi,pclmul,lzcnt" )
129- #define TARGET_WESTMERE TARGET_REGION(" sse4.2 ,pclmul" )
130- #define TARGET_ARM64
131-
132127// Is threading enabled?
133128#if defined(BOOST_HAS_THREADS) || defined(_REENTRANT) || defined(_MT)
134129#ifndef SIMDJSON_THREADS_ENABLED
0 commit comments