Overhaul the qsimd_p.h: rename macros and update conditionals
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 30 May 2012 12:38:16 +0000 (14:38 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 31 May 2012 15:55:37 +0000 (17:55 +0200)
commit398c8513b172d4605a27dfa6125045b55e7cb29e
treeb5997e08351873452745f8b20f22558d66710e40
parent5cbdba588a14e05fd282b5850a3e7b66fd9b2b65
Overhaul the qsimd_p.h: rename macros and update conditionals

The QT_HAVE_xxx macros are replaced with QT_COMPILER_SUPPORTS_xxx.
They indicate that the compiler supports those intrinsics, but not
necessarily that they can be used right now.

ICC and MSVC allow one to use the intrinsics anywhere, but for Qt all
uses of the intrinsics are either in specially-built files, protected
by runtime checks, or they are unconditional (qstring.cpp). So we only
use the intrinsics when the compiler was instructed to generate code
for that instruction set anyway.

Change-Id: Ie58eebbc0518ad1d5420a85174fd84153bb9abaa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
23 files changed:
mkspecs/features/qt.prf
src/corelib/tools/qsimd.cpp
src/corelib/tools/qsimd_p.h
src/gui/gui.pro
src/gui/image/qimage.cpp
src/gui/image/qimage_avx.cpp
src/gui/image/qimage_neon.cpp
src/gui/image/qimage_sse2.cpp
src/gui/image/qimage_ssse3.cpp
src/gui/image/qjpeghandler.cpp
src/gui/image/qpixmap_raster.cpp
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_avx.cpp
src/gui/painting/qdrawhelper_iwmmxt.cpp
src/gui/painting/qdrawhelper_mips_dsp.cpp
src/gui/painting/qdrawhelper_mips_dsp_p.h
src/gui/painting/qdrawhelper_neon.cpp
src/gui/painting/qdrawhelper_neon_p.h
src/gui/painting/qdrawhelper_sse2.cpp
src/gui/painting/qdrawhelper_sse_p.h
src/gui/painting/qdrawhelper_ssse3.cpp
src/gui/painting/qdrawhelper_x86_p.h
src/gui/painting/qdrawingprimitive_sse2_p.h