diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-26 15:14:13 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-27 09:05:34 (GMT) |
commit | 34beae57ff8248e7666a4ce08a06eeff54e05e7a (patch) | |
tree | 72af98d91ca182b2156cd8b11b607bcf62c2bcc7 /src/gui/painting/qdrawhelper_p.h | |
parent | c3b2f89b85696c01062ddcd9d21a05cebf51b078 (diff) | |
download | Qt-34beae57ff8248e7666a4ce08a06eeff54e05e7a.zip Qt-34beae57ff8248e7666a4ce08a06eeff54e05e7a.tar.gz Qt-34beae57ff8248e7666a4ce08a06eeff54e05e7a.tar.bz2 |
Implement the composition mode "Plus" with SSE2
Implement the composition function for CompositionMode_Plus with SSE2.
The macro MIX() can be replaced by a single instruction add-saturate,
which increase the speed a lot (13 times faster on the blend
benchmark).
Reviewed-by: Olivier Goffart
Reviewed-by: Andreas Kling
Diffstat (limited to 'src/gui/painting/qdrawhelper_p.h')
-rw-r--r-- | src/gui/painting/qdrawhelper_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h index eec6bf4..1a87127 100644 --- a/src/gui/painting/qdrawhelper_p.h +++ b/src/gui/painting/qdrawhelper_p.h @@ -91,6 +91,11 @@ QT_BEGIN_NAMESPACE # define Q_STATIC_INLINE_FUNCTION static inline #endif +static const uint AMASK = 0xff000000; +static const uint RMASK = 0x00ff0000; +static const uint GMASK = 0x0000ff00; +static const uint BMASK = 0x000000ff; + /******************************************************************************* * QSpan * |