|
|
@ -100,7 +100,7 @@ _sodium_runtime_arm_cpu_features(CPUFeatures * const cpu_features) |
|
|
|
(android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_AES) != 0x0; |
|
|
|
#elif defined(HAVE_GETAUXVAL) && defined(AT_HWCAP) && defined(__aarch64__) |
|
|
|
cpu_features->has_armcrypto_aes = (getauxval(AT_HWCAP) & (1L << 3)) != 0; |
|
|
|
#elif defined(HAVE_GETAUXVAL) && defined(AT_HWCAP) && defined(__arm__) |
|
|
|
#elif defined(HAVE_GETAUXVAL) && defined(AT_HWCAP2) && defined(__arm__) |
|
|
|
cpu_features->has_armcrypto_aes = (getauxval(AT_HWCAP2) & (1L << 0)) != 0; |
|
|
|
#endif |
|
|
|
|
|
|
|