diff options
Diffstat (limited to 'src/corelib/global/qsimd.h')
-rw-r--r-- | src/corelib/global/qsimd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/global/qsimd.h b/src/corelib/global/qsimd.h index 87e9d0d098..4ef925ca33 100644 --- a/src/corelib/global/qsimd.h +++ b/src/corelib/global/qsimd.h @@ -55,7 +55,7 @@ #if defined(Q_PROCESSOR_X86) && defined(Q_CC_MSVC) // MSVC doesn't define __SSE2__, so do it ourselves -# if (defined(_M_X64) || _M_IX86_FP >= 2) +# if (defined(_M_X64) || _M_IX86_FP >= 2) && defined(QT_COMPILER_SUPPORTS_SSE2) # define __SSE__ 1 # define __SSE2__ 1 # endif @@ -77,9 +77,11 @@ # ifdef __AVX2__ // MSVC defines __AVX2__ with /arch:AVX2 # define __F16C__ 1 +# define __RDRND__ 1 # define __FMA__ 1 # define __BMI__ 1 # define __BMI2__ 1 +# define __MOVBE__ 1 # define __LZCNT__ 1 # endif // Starting with /arch:AVX512, MSVC defines all the macros |