mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
Assume all CPUs supported by ARM Windows have the crypto extensions
RADDI.net said: "All supported AArch64 CPUs on desktop Windows 10 and 11 have both AES (crypto) and NEON, no feature testing needed."
This commit is contained in:
parent
e698b1b000
commit
4dc02ce841
@ -99,6 +99,8 @@ _sodium_runtime_arm_cpu_features(CPUFeatures * const cpu_features)
|
||||
|
||||
#if __ARM_FEATURE_CRYPTO
|
||||
cpu_features->has_armcrypto = 1;
|
||||
#elif defined(_M_ARM64)
|
||||
cpu_features->has_armcrypto = 1; /* assuming all CPUs supported by ARM Windows have the crypto extensions */
|
||||
#elif defined(__APPLE__) && defined(CPU_TYPE_ARM64) && defined(CPU_SUBTYPE_ARM64E)
|
||||
{
|
||||
cpu_type_t cpu_type;
|
||||
|
Loading…
Reference in New Issue
Block a user