diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-12-10 10:31:04 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-10 20:50:58 +0100 |
commit | 96acdc986724ed90c6423287c35c2c89876158ba (patch) | |
tree | f90ca29ba9cd43e0d5721ef60b7656cddf905286 /src/qml/qml/v8/qv8engine.cpp | |
parent | e6a417692652d925c6baed33d153f86d78244134 (diff) |
Use qCpuHasFeature because the check can be optimized out of existence
qCpuHasFeature also checks the compiler flags of this particular build.
If the feature was enabled by the compiler in this .cpp, then no runtime
check is performed and the test becomes an unconditional true.
Change-Id: Ibb7d333e59a0f4ed06b7d0056547177fd69658a0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8engine.cpp')
-rw-r--r-- | src/qml/qml/v8/qv8engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/v8/qv8engine.cpp b/src/qml/qml/v8/qv8engine.cpp index e41a91ecdb..33f5a00a6c 100644 --- a/src/qml/qml/v8/qv8engine.cpp +++ b/src/qml/qml/v8/qv8engine.cpp @@ -95,7 +95,7 @@ QV8Engine::QV8Engine(QJSEngine* qq) , m_listModelData(0) { #ifdef Q_PROCESSOR_X86_32 - if (!(qCpuFeatures() & SSE2)) { + if (!qCpuHasFeature(SSE2)) { qFatal("This program requires an X86 processor that supports SSE2 extension, at least a Pentium 4 or newer"); } #endif |