Fix runtime detection of ARM AES extension on Darwin (iOS)

Is enabled unconditionally for all desktop processors already.

Pick-to: 6.8
Change-Id: Iaf8508fabcf90b6e76692d07250679a1a6103dca
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Allan Sandfeld Jensen 2024-09-24 16:36:30 +02:00
parent 493fa52e13
commit cda53f290f

View File

@ -138,7 +138,8 @@ static inline quint64 detectProcessorFeatures()
features |= feature ? CpuFeatureNEON : 0;
if (sysctlbyname("hw.optional.armv8_crc32", &feature, &len, nullptr, 0) == 0)
features |= feature ? CpuFeatureCRC32 : 0;
// There is currently no optional value for crypto/AES.
if (sysctlbyname("hw.optional.arm.FEAT_AES", &feature, &len, nullptr, 0) == 0)
features |= feature ? CpuFeatureAES : 0;
#if defined(__ARM_FEATURE_CRYPTO)
features |= CpuFeatureAES;
#endif