mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 07:23:37 +02:00
[NFC] Avoid polluting global scope
This commit is contained in:
parent
5ed8ef4bbe
commit
aa642e573e
@ -232,11 +232,11 @@
|
|||||||
|
|
||||||
// Communicates to the compiler that the block is unreachable
|
// Communicates to the compiler that the block is unreachable
|
||||||
#if defined(CPU_FEATURES_COMPILER_CLANG) || defined(CPU_FEATURES_COMPILER_GCC)
|
#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)
|
#elif defined(CPU_FEATURES_COMPILER_MSC)
|
||||||
#define UNREACHABLE() __assume(0)
|
#define CPU_FEATURES_UNREACHABLE() __assume(0)
|
||||||
#else
|
#else
|
||||||
#define UNREACHABLE()
|
#define CPU_FEATURES_UNREACHABLE()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_
|
#endif // CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_
|
||||||
|
@ -340,7 +340,7 @@ static Node* GetCacheTypeString(CacheType cache_type) {
|
|||||||
case CPU_FEATURE_CACHE_PREFETCH:
|
case CPU_FEATURE_CACHE_PREFETCH:
|
||||||
return CreateConstantString("prefetch");
|
return CreateConstantString("prefetch");
|
||||||
}
|
}
|
||||||
UNREACHABLE();
|
CPU_FEATURES_UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void AddCacheInfo(Node* root, const CacheInfo* cache_info) {
|
static void AddCacheInfo(Node* root, const CacheInfo* cache_info) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user