From 3ee325b7a4141fbf31891c08f0184822c4706274 Mon Sep 17 00:00:00 2001 From: Dertosh Date: Fri, 13 Dec 2024 17:47:37 +0300 Subject: [PATCH] Update cpu_detect.cc Fix wrong check deffenition --- absl/crc/internal/cpu_detect.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/absl/crc/internal/cpu_detect.cc b/absl/crc/internal/cpu_detect.cc index b356fa09099..e27719cf3cf 100644 --- a/absl/crc/internal/cpu_detect.cc +++ b/absl/crc/internal/cpu_detect.cc @@ -269,7 +269,7 @@ CpuType GetCpuType() { } bool SupportsArmCRC32PMULL() { -#if defined(HWCAP_CRC32) && defined(HWCAP_CRC32PMULL) +#if defined(HWCAP_CRC32) && defined(HWCAP_PMULL) uint64_t hwcaps = getauxval(AT_HWCAP); return (hwcaps & HWCAP_CRC32) && (hwcaps & HWCAP_PMULL); #else