diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-22 12:48:19 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-26 10:40:00 (GMT) |
commit | 38d8826503385f249cfd4d35382a79252de85873 (patch) | |
tree | dfefbf714c48edd557c140c1d64a73f9071c66f1 /src/corelib | |
parent | 7500a3de97d828a05315cdac03df32a506f806c4 (diff) | |
download | Qt-38d8826503385f249cfd4d35382a79252de85873.zip Qt-38d8826503385f249cfd4d35382a79252de85873.tar.gz Qt-38d8826503385f249cfd4d35382a79252de85873.tar.bz2 |
Extend the build system to SSSE3
Extend the build of QtGui to include generic compilation of files
specific to SSSE3.
Also extend qsimd_p.h for the new #includes.
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qsimd_p.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h index 18394853..5ff0f97 100644 --- a/src/corelib/tools/qsimd_p.h +++ b/src/corelib/tools/qsimd_p.h @@ -72,6 +72,27 @@ QT_BEGIN_HEADER # include <emmintrin.h> #endif +// SSE3 intrinsics +#if defined(QT_HAVE_SSE3) && (defined(__SSE3__) || defined(Q_CC_MSVC)) +#include <pmmintrin.h> +#endif + +// SSSE3 intrinsics +#if defined(QT_HAVE_SSSE3) && (defined(__SSSE3__) || defined(Q_CC_MSVC)) +#include <tmmintrin.h> +#endif + +// SSE4.1 and SSE4.2 intrinsics +#if (defined(QT_HAVE_SSE4_1) || defined(QT_HAVE_SSE4_2)) && (defined(__SSE4_1__) || defined(Q_CC_MSVC)) +#include <smmintrin.h> +#endif + +// AVX intrinsics +#if defined(QT_HAVE_AVX) && (defined(__AVX__) || defined(Q_CC_MSVC)) +#include <immintrin.h> +#endif + + #if !defined(QT_BOOTSTRAPPED) && (!defined(Q_CC_MSVC) || (defined(_M_X64) || _M_IX86_FP == 2)) #define QT_ALWAYS_HAVE_SSE2 #endif |