1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-02 05:33:17 +02:00

[NFC] Avoid polluting global scope

This commit is contained in:
Guillaume Chatelet
2022-01-14 16:06:30 +00:00
parent 5ed8ef4bbe
commit aa642e573e
2 changed files with 4 additions and 4 deletions

View File

@ -232,11 +232,11 @@
// Communicates to the compiler that the block is unreachable
#if defined(CPU_FEATURES_COMPILER_CLANG) || defined(CPU_FEATURES_COMPILER_GCC)
#define UNREACHABLE() __builtin_unreachable()
#define CPU_FEATURES_UNREACHABLE() __builtin_unreachable()
#elif defined(CPU_FEATURES_COMPILER_MSC)
#define UNREACHABLE() __assume(0)
#define CPU_FEATURES_UNREACHABLE() __assume(0)
#else
#define UNREACHABLE()
#define CPU_FEATURES_UNREACHABLE()
#endif
#endif // CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_