mirror of
https://github.com/google/cpu_features.git
synced 2025-07-02 13:43:18 +02:00
Use CPU_FEATURES_ prefix for namespace macros.
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
#include <stdint.h>
|
||||
#include "cpu_features_macros.h"
|
||||
|
||||
START_CPP_NAMESPACE
|
||||
CPU_FEATURES_START_CPP_NAMESPACE
|
||||
|
||||
inline static bool IsBitSet(uint32_t reg, uint32_t bit) {
|
||||
return (reg >> bit) & 0x1;
|
||||
@ -34,6 +34,6 @@ inline static uint32_t ExtractBitRange(uint32_t reg, uint32_t msb,
|
||||
return (reg >> lsb) & mask;
|
||||
}
|
||||
|
||||
END_CPP_NAMESPACE
|
||||
CPU_FEATURES_END_CPP_NAMESPACE
|
||||
|
||||
#endif // CPU_FEATURES_INCLUDE_INTERNAL_BIT_UTILS_H_
|
||||
|
Reference in New Issue
Block a user