From a08fc98bc893f0858ae05ec45b47b1b6c642f449 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 2 Dec 2022 22:29:14 +0000 Subject: [PATCH] Fix detection of CRC32 opcodes in Apple Silicon. --- simd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simd.c b/simd.c index 64e5b64..6afe58c 100644 --- a/simd.c +++ b/simd.c @@ -140,7 +140,7 @@ int have_crc32_apple() { int value; size_t len = sizeof(int); - int ret = sysctlbyname("hw.optional.crc32", &value, &len, NULL, 0); + int ret = sysctlbyname("hw.optional.armv8_crc32", &value, &len, NULL, 0); if(ret != 0) return 0;