From 612fae1ae6299d9614b2af7efd122830c431240f Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 30 May 2012 14:48:26 +0200 Subject: [PATCH] Add support for the x86intrin.h header on GCC systems. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This header can be included at any time on x86 systems and is present since the GCC versiosn that also support AVX. It contains intrinsics for instructions that have been present in x86 CPUs since the dawn of time. Change-Id: I9adb066c2c0b56ce8fd5ed7366716038f1254502 Reviewed-by: Oswald Buddenhagen Reviewed-by: Samuel Rødal Reviewed-by: Bradley T. Hughes --- src/corelib/tools/qsimd_p.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h index a6ae680c3e..0cc6bf4b76 100644 --- a/src/corelib/tools/qsimd_p.h +++ b/src/corelib/tools/qsimd_p.h @@ -139,6 +139,12 @@ QT_BEGIN_HEADER # endif #endif +// other x86 intrinsics +#if defined(QT_COMPILER_SUPPORTS_AVX) && defined(Q_CC_GNU) +#define QT_COMPILER_SUPPORTS_X86INTRIN +#include +#endif + // NEON intrinsics #if defined __ARM_NEON__ #include