mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
Add detection for ARM AES extensions.
This commit is contained in:
5
simd.c
5
simd.c
@@ -101,11 +101,14 @@ int have_neon(void)
|
||||
}
|
||||
|
||||
int have_arm_crc32(void) { return getauxval(AT_HWCAP) & HWCAP_CRC32; }
|
||||
|
||||
int have_arm_crypto(void) { return getauxval(AT_HWCAP) & HWCAP_AES; }
|
||||
#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; }
|
||||
}
|
||||
|
||||
int have_arm_crypto(void) { return getauxval(AT_HWCAP2) & HWCAP2_AES; }
|
||||
#endif
|
||||
Reference in New Issue
Block a user