windows arm64: Use correct Q_PROCESSOR_ARM_64 define check
Inclusion of qt_windows.h is needed to avoid "No Target Architecture" in winnt.h. Change-Id: Ic67ce8a306ef52c4ce3e6eaad0b7864632610737 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
dac76bb442
commit
32caaacee3
@ -54,7 +54,8 @@
|
||||
# if !defined(Q_CC_GNU)
|
||||
# include <intrin.h>
|
||||
# endif
|
||||
# if defined(Q_PROCESSOR_ARM64)
|
||||
# if defined(Q_PROCESSOR_ARM_64)
|
||||
# include <qt_windows.h>
|
||||
# include <processthreadsapi.h>
|
||||
# endif
|
||||
#elif defined(Q_OS_LINUX) && defined(Q_PROCESSOR_MIPS_32)
|
||||
@ -166,7 +167,7 @@ static inline quint64 detectProcessorFeatures()
|
||||
features |= CpuFeatureAES;
|
||||
#endif
|
||||
return features;
|
||||
#elif defined(Q_OS_WIN) && defined(Q_PROCESSOR_ARM64)
|
||||
#elif defined(Q_OS_WIN) && defined(Q_PROCESSOR_ARM_64)
|
||||
features |= CpuFeatureNEON;
|
||||
if (IsProcessorFeaturePresent(PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE) != 0)
|
||||
features |= CpuFeatureCRC32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user