summaryrefslogtreecommitdiffstats
path: root/src/gui/image/image.pri
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-12-08 19:16:57 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-16 02:59:46 +0100
commitd006e69da61bfddb8be9a400e4cb1c25542bb9d9 (patch)
treebf1909231fe93d08393dbb4d04f46f092c159c9d /src/gui/image/image.pri
parent5ca6039b7738415b8beeced4d34039ee2edbd903 (diff)
Remove runtime detection of SSE2
If the compiler supports SSE2, we'll use our SSE2-optimised code unconditionally. Runtime detection is left for SSSE3 code. The SSE2 codebase is big and thus a timebomb if an inline function gets leaked out and run without runtime check. In reality, it's extremely unlikely people running CPUs without SSE2 support are running Qt 5 at this moment (they're either too old or too new, e.g. Intel Quark). The SSSE3 codebase is a lot more manageable. Task-number: QTBUG-30440 Change-Id: I3e586e4434e820365d5316b650ee3061d0acf767 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/gui/image/image.pri')
-rw-r--r--src/gui/image/image.pri6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/image/image.pri b/src/gui/image/image.pri
index 1877f60bfd..ad860ef2db 100644
--- a/src/gui/image/image.pri
+++ b/src/gui/image/image.pri
@@ -79,5 +79,7 @@ contains(QT_CONFIG, gif):include($$PWD/qgifhandler.pri)
# SIMD
NEON_SOURCES += image/qimage_neon.cpp
-SSE2_SOURCES += image/qimage_sse2.cpp
-SSSE3_SOURCES += image/qimage_ssse3.cpp
+contains(QT_CPU_FEATURES.$$QT_ARCH, sse2) {
+ SOURCES += image/qimage_sse2.cpp
+ SSSE3_SOURCES += image/qimage_ssse3.cpp
+}