diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-09-11 16:25:37 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-13 19:11:48 +0200 |
commit | c1c715f800d3c79eed8305f4b4be9bff8a81fda3 (patch) | |
tree | b7fb9e385d861d5d1c94b918d4165179ca95a376 /src/widgets/kernel/qsizepolicy.h | |
parent | d7e424ee6686f663f5134666e09c2875bb3e42b6 (diff) |
Optimize QBitArray::count(bool)
Ever since 76e0223619da02911d02813961ef631a5e02d826, qPopulationCount
was extracted from QBitArray and moved elsewhere. That unfortunately
meant that the 24-bit loads are completely useless, since
qPopulationCount always operates on 32 bits.
Instead, do a full loop on 32-bit and then do 16-bit and finally 8-bit
(for which there are qPopulationCount overloads).
Change-Id: If945609f075095257d12877c39434909ac190e54
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/kernel/qsizepolicy.h')
0 files changed, 0 insertions, 0 deletions