summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-01-30 12:22:37 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-15 12:39:29 +0000
commit839f38bcfab4e96d8f90f50caed0d1e76465aabd (patch)
treeb62cf2abb15464c9ab573f23df29952bcb16d217 /src/gui
parent4ad83407ddc4d5838b77e645f4b421a356e844e1 (diff)
Remove support for some very old compilers
Remove code supporting gcc 4.0 and earlier, and MSVC 2005 and earlier. Change-Id: I3304e11bb38c101f113c124e8e533c5578badf34 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qdrawhelper_sse2.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/painting/qdrawhelper_sse2.cpp b/src/gui/painting/qdrawhelper_sse2.cpp
index 7c6d141f6b..93d2d94626 100644
--- a/src/gui/painting/qdrawhelper_sse2.cpp
+++ b/src/gui/painting/qdrawhelper_sse2.cpp
@@ -537,18 +537,7 @@ 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
- // (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;
- convert.vf = _mm_cmpgt_ps(a, b);
- return convert.vi;
- }
-#else
static inline Int32x4 v_greaterOrEqual(Float32x4 a, Float32x4 b) { return _mm_castps_si128(_mm_cmpgt_ps(a, b)); }
-#endif
};
const uint * QT_FASTCALL qt_fetch_radial_gradient_sse2(uint *buffer, const Operator *op, const QSpanData *data,