diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2012-10-17 14:34:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-19 18:10:46 +0200 |
commit | 7d7f09650c3b3b2990f16ff4a6401a8c74e1f868 (patch) | |
tree | 1278459522f2a532aed304c46bc5a856d0bc3d4c | |
parent | 9690548113e03614c770cec44a527e6c1edce6ab (diff) |
Fixed GCC 3.4 build with sse2 enabled.
With minimal effort we can keep the GCC 3.4 build working.
Task-number: QTBUG-19803
Change-Id: I31611a27b97d5ac426ea857d8f1b656dc6f5377a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/gui/painting/qdrawhelper_sse2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawhelper_sse2.cpp b/src/gui/painting/qdrawhelper_sse2.cpp index e72b9ba968..a29d2037db 100644 --- a/src/gui/painting/qdrawhelper_sse2.cpp +++ b/src/gui/painting/qdrawhelper_sse2.cpp @@ -535,7 +535,8 @@ public: static inline Int32x4 v_toInt(Float32x4 x) { return _mm_cvttps_epi32(x); } // pre-VS 2008 doesn't have cast intrinsics, whereas 2008 and later requires it -#if defined(Q_CC_MSVC) && _MSC_VER < 1500 + // (same deal with gcc prior to 4.0) +#if (defined(Q_CC_MSVC) && _MSC_VER < 1500) || (defined(Q_CC_GNU) && __GNUC__ < 4) static inline Int32x4 v_greaterOrEqual(Float32x4 a, Float32x4 b) { union Convert { Int32x4 vi; Float32x4 vf; } convert; |