mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
Add ARM special instructions implementation for CRC32.
This commit is contained in:
5
simd.c
5
simd.c
@@ -99,8 +99,13 @@ int have_neon(void)
|
||||
{
|
||||
return 1; // ARMv8-A made it mandatory
|
||||
}
|
||||
|
||||
int have_arm_crc32(void) { return getauxval(AT_HWCAP) & HWCAP_CRC32; }
|
||||
#endif
|
||||
|
||||
#if defined(__arm__) || defined(_M_ARM)
|
||||
int have_neon(void) { return getauxval(AT_HWCAP) & HWCAP_NEON; }
|
||||
|
||||
int have_arm_crc32(void) { return getauxval(AT_HWCAP2) & HWCAP2_CRC32; }
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user