summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-06-22 09:21:19 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-22 21:03:54 +0000
commit3aca043134a8e6b1041d7b2a97367f44f1b94e6b (patch)
tree75f2ac8f76504f01f3f76fd99d77846d4957331d /src
parent4f0fb1d26a0de3e7c8d79a3d5a4800f4863cdfdb (diff)
qsimd: Don't force RDRND on if __AVX2__
Like AESNI, RDRAND is an optional extra feature that is not always enabled in all parts. Probably something to do with export restrictions, but I've only seen that in low-end parts. Drive-by removal of "AES" where it was no longer relevant. Change-Id: I7246c3e7bb894e0d9521fffd168af3fc0fb638a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 9cc7f233c9e2f2bacdcb06f166d0812d58eb4bfc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qsimd_p.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/corelib/global/qsimd_p.h b/src/corelib/global/qsimd_p.h
index cdb2a74cd1..35979176fa 100644
--- a/src/corelib/global/qsimd_p.h
+++ b/src/corelib/global/qsimd_p.h
@@ -204,18 +204,17 @@
// AVX intrinsics
# if defined(__AVX__) && defined(QT_COMPILER_SUPPORTS_SIMD_ALWAYS) && (defined(Q_CC_INTEL) || defined(Q_CC_MSVC))
-// AES, PCLMULQDQ instructions:
+// PCLMULQDQ instructions:
// All processors that support AVX support PCLMULQDQ
// (but neither MSVC nor the Intel compiler define this macro)
# define __PCLMUL__ 1
# endif
# if defined(__AVX2__) && defined(QT_COMPILER_SUPPORTS_SIMD_ALWAYS) && (defined(Q_CC_INTEL) || defined(Q_CC_MSVC))
-// F16C & RDRAND instructions:
-// All processors that support AVX2 support F16C & RDRAND:
-// (but neither MSVC nor the Intel compiler define these macros)
+// F16C instructions:
+// All processors that support AVX2 support F16C:
+// (but neither MSVC nor the Intel compiler define this macro)
# define __F16C__ 1
-# define __RDRND__ 1
# endif
# if defined(__BMI__) && !defined(__BMI2__) && defined(Q_CC_INTEL)