diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-02-26 22:33:29 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-28 17:59:51 +0100 |
commit | 40519146419cccf30e392b08fcf3db755ad288a1 (patch) | |
tree | 6200661e482728ea8984dee57b6cd6b26d009d6f /examples | |
parent | 24040ca43cf0b8bff9a2283aed79b578fcdd6cdc (diff) |
QPalette: optimize move assignment operator
Instead of assigning the various bit-fields manually, use the quint32
union field, which is already present to avoid slow bit-field operations
in the member-swap function.
Verifed that the generated assembly for move-assignment is
significantly better than before on GCC.
Change-Id: If4e0ef678bf3a496c6eb369ad3f639f5a9bc79fc
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions