summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qsimd_p.h
diff options
context:
space:
mode:
authorJohn Brooks <special@dereferenced.net>2010-06-28 18:13:50 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-06-28 18:13:50 (GMT)
commit2b599833c61de7bb164b0dffb5e28194d311972b (patch)
tree0a779c43afd078a6813d169304e1a987b2bfe202 /src/corelib/tools/qsimd_p.h
parent2bf44ff6edc32eafa6d9ecd15c7c17eccc6a2ff8 (diff)
downloadQt-2b599833c61de7bb164b0dffb5e28194d311972b.zip
Qt-2b599833c61de7bb164b0dffb5e28194d311972b.tar.gz
Qt-2b599833c61de7bb164b0dffb5e28194d311972b.tar.bz2
Enable SSE2 for MSVC x64 builds, as it was incorrectly disabled
Merge-request: 718 Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'src/corelib/tools/qsimd_p.h')
-rw-r--r--src/corelib/tools/qsimd_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h
index cbe6146..58d2dcb 100644
--- a/src/corelib/tools/qsimd_p.h
+++ b/src/corelib/tools/qsimd_p.h
@@ -58,7 +58,8 @@ QT_BEGIN_HEADER
#endif
// SSE intrinsics
-#if defined(__SSE2__) && defined(QT_HAVE_SSE2) && !defined(QT_BOOTSTRAPPED)
+#if defined(QT_HAVE_SSE2) && !defined(QT_BOOTSTRAPPED) && (defined(__SSE2__) \
+ || (defined(Q_CC_MSVC) && (defined(_M_X64) || _M_IX86_FP == 2)))
#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