mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 11:14:29 +00:00
Fix detection of CRC32 opcodes in Apple Silicon.
This commit is contained in:
2
simd.c
2
simd.c
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user