Remove the old code using MMX registers.
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 29 Dec 2011 20:09:46 +0000 (18:09 -0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 28 Mar 2012 12:54:12 +0000 (14:54 +0200)
commitd43fe0b672a665fc366f7d4a91a522959801165d
tree07ef87adf783aea20725597f8732c2bc0b037f65
parentd2b1c2ef1f1fea3200d8dee5c58fe79649fd13bb
Remove the old code using MMX registers.

There are only 8 MMX registers, each 64-bit wide, and they alias the
x87 registers. The access to the MMX register cannot use the new
VEX-prefix instructions either.

All of the functions being replaced are either present in the
qdrawhelper_sse2.cpp and qdrawhelper_ssse3.cpp files, or the plain C++
function in qdrawhelper.cpp is vectorised when compiled with
-ftree-vectorize (enabled in -O3), if SSE2 support is enabled.

All x86-64 processors have SSE2, so this is a net improvement for
64-bit builds. For 32-bit builds, without further support this will
cause the code to use non-vector or x87 instructions, which aren't the
best. The solution will come in another commit.

Change-Id: I4a22d8a2516b79172867510202d0fd627db54807
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/gui.pro
src/gui/painting/painting.pri
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_mmx.cpp [deleted file]
src/gui/painting/qdrawhelper_mmx3dnow.cpp [deleted file]
src/gui/painting/qdrawhelper_mmx_p.h [deleted file]
src/gui/painting/qdrawhelper_sse.cpp [deleted file]
src/gui/painting/qdrawhelper_sse2.cpp
src/gui/painting/qdrawhelper_sse3dnow.cpp [deleted file]
src/gui/painting/qdrawhelper_x86_p.h