diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-02-24 10:01:32 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-02-24 11:33:54 (GMT) |
commit | 5a3a5cd17496bc49c005df8f92ec2ffb56187281 (patch) | |
tree | ab21bc30b8cdbcf911c4124dc717449b7e537746 | |
parent | 5d6d552c4c01c1e8884d7641c81671e808eed55d (diff) | |
download | Qt-5a3a5cd17496bc49c005df8f92ec2ffb56187281.zip Qt-5a3a5cd17496bc49c005df8f92ec2ffb56187281.tar.gz Qt-5a3a5cd17496bc49c005df8f92ec2ffb56187281.tar.bz2 |
Fix compilation on x86 with gcc if SSE2 is not enabled
Reviewed-By: Benjamin Poulain
-rw-r--r-- | src/corelib/tools/qsimd_p.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h index 07fae97..556db14 100644 --- a/src/corelib/tools/qsimd_p.h +++ b/src/corelib/tools/qsimd_p.h @@ -60,17 +60,8 @@ QT_MODULE(Core) #undef QT_HAVE_MMX #endif - -#if defined(__x86_64__) || defined(Q_OS_WIN64) || defined(__ia64__) || defined(__SSE2__) -#if defined(QT_HAVE_SSE2) -// Defined for small fast functions that can take advantages of SSE2 intrinsics -#define QT_ALWAYS_HAVE_SSE2 -#endif -#endif - - // SSE intrinsics -#if defined(QT_HAVE_SSE2) || defined(QT_HAVE_SSE) || defined(QT_HAVE_MMX) +#if defined(__SSE2__) #if defined(QT_LINUXBASE) /// this is an evil hack - the posix_memalign declaration in LSB /// is wrong - see http://bugs.linuxbase.org/show_bug.cgi?id=2431 @@ -80,6 +71,8 @@ QT_MODULE(Core) #else # include <emmintrin.h> #endif + +#define QT_ALWAYS_HAVE_SSE2 #endif // NEON intrinsics |