Fix detection of CRC32 opcodes in Apple Silicon.

This commit is contained in:
2022-12-02 22:29:14 +00:00
parent 722d910bbb
commit a08fc98bc8

2
simd.c
View File

@@ -140,7 +140,7 @@ int have_crc32_apple()
{ {
int value; int value;
size_t len = sizeof(int); 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; if(ret != 0) return 0;