summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorU-GER\tjmaciei <thiago.macieira@intel.com>2022-11-02 15:40:19 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-11-02 19:49:23 -0700
commit3a8980304f313bc82f0a079bc0239172036ba3ea (patch)
tree15f24cc29bf54584ff6f4a87a188dd0bd374a4ee /src/corelib/global
parentc2aa05991d79df57f826606157056c658c6de797 (diff)
qsimd.h: add two more CPU feature macros that MSVC doesn't define
Ivy Bridge added RDRAND and Haswell (x86-64-v3) added MOVBE. Pick-to: 6.4 Change-Id: I3d74c753055744deb8acfffd1723e5b9bdfaaafb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qsimd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/global/qsimd.h b/src/corelib/global/qsimd.h
index 87e9d0d098..6ed7821e26 100644
--- a/src/corelib/global/qsimd.h
+++ b/src/corelib/global/qsimd.h
@@ -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