qt5base-lts/tests/benchmarks/gui/image
Allan Sandfeld Jensen 5f59207bd3 Optimize drawing to and from generic formats
When drawing to and from the less common formats most of the cpu time
is spend in conversion. The conversion method is rather slow due to
using variable shifts and masks that the compiler does not have a chance
to optimize.

This patch changes the conversion methods to being templates fed by
constexpr methods. This allows the compiler to fully optimize the methods
yielding 2x->5x speedups.

The reliance on constexpr however means the optimized methods are only
used under C++11.

Change-Id: I2ec77c4c1c03f12ee463a694a2b59db0f0b52db1
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
2014-01-31 00:24:48 +01:00
..
blendbench Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qimageconversion Optimize drawing to and from generic formats 2014-01-31 00:24:48 +01:00
qimagereader Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qpixmap Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qpixmapcache Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
image.pro Check for network module when building according benchmarks 2013-02-19 19:21:08 +01:00