Use the C99 keyword "restrict" in compilers that support it
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 29 Dec 2011 18:36:46 +0000 (16:36 -0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Apr 2012 14:38:14 +0000 (16:38 +0200)
commit29d2aad30a47009e5b756a608dc9366900caf71f
treed62ceb7afa87eb93b63069bdb89dbdd3e9b94faf
parent1765329b8c15b855f787ef8079b4d021d06f7af4
Use the C99 keyword "restrict" in compilers that support it

This allows the compiler to produce better / smaller code due to not
being required to deal with two pointers possibly aliasing each
other. This also enables vectorisation where otherwise the compiler
wouldn't be able to do.

Change-Id: Ie7db3a54a1ba22f87ac5283d5c43905707957549
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_p.h