Fix runtime detection of ARM AES extension on Darwin (iOS)
Is enabled unconditionally for all desktop processors already. Change-Id: Iaf8508fabcf90b6e76692d07250679a1a6103dca Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit cda53f290fbe57403a9db473aed61ad13193a4ec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
f5e0d2e879
commit
6fd43cbb09
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user