qt5base-lts/tests/benchmarks/gui
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
..
animation Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
graphicsview expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
image Optimize drawing to and from generic formats 2014-01-31 00:24:48 +01:00
itemviews resizeToContents - QTableView - faster hint when view is hidden 2013-05-09 06:44:54 +02:00
kernel Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
math3d Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
painting Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
styles Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
text Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
gui.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00