diff options
Diffstat (limited to 'absl')
-rw-r--r-- | absl/crc/internal/cpu_detect.cc | 4 | ||||
-rw-r--r-- | absl/crc/internal/cpu_detect.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/absl/crc/internal/cpu_detect.cc b/absl/crc/internal/cpu_detect.cc index e10c7ac0..339b7cc7 100644 --- a/absl/crc/internal/cpu_detect.cc +++ b/absl/crc/internal/cpu_detect.cc @@ -206,6 +206,8 @@ CpuType GetCpuType() { } } +bool SupportsArmCRC32PMULL() { return false; } + #elif defined(__aarch64__) && defined(__linux__) #define ABSL_INTERNAL_AARCH64_ID_REG_READ(id, val) \ @@ -240,6 +242,8 @@ bool SupportsArmCRC32PMULL() { CpuType GetCpuType() { return CpuType::kUnknown; } +bool SupportsArmCRC32PMULL() { return false; } + #endif } // namespace crc_internal diff --git a/absl/crc/internal/cpu_detect.h b/absl/crc/internal/cpu_detect.h index 54cb328a..6054f696 100644 --- a/absl/crc/internal/cpu_detect.h +++ b/absl/crc/internal/cpu_detect.h @@ -43,14 +43,12 @@ enum class CpuType { // the host CPU is of unknown type, or if detection otherwise fails. CpuType GetCpuType(); -#if defined(__aarch64__) // Returns whether the host CPU supports the CPU features needed for our // accelerated implementations. The CpuTypes enumerated above apart from // kUnknown support the required features. On unknown CPUs, we can use // this to see if it's safe to use hardware acceleration, though without any // tuning. bool SupportsArmCRC32PMULL(); -#endif } // namespace crc_internal ABSL_NAMESPACE_END |