diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-20 15:31:03 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-09-26 18:19:35 +0000 |
commit | f7350ac99ed961ec2f08d1db55b3c3ce088f33f0 (patch) | |
tree | 26a35956ab9de6742c2ee966c9f327bfe01984f6 /src/corelib/io | |
parent | 49154acde3c2c5f45a50dfd5d011c47db8b761f9 (diff) |
Improve qustrlen further by avoiding the alignment prologue
This avoids looping prior to the main 16-byte loop, by performing one
load that may include bytes prior to the start of the string. This is
guaranteed not to fault, since str points to a valid character, but it
may cause Valgrind to print warnings.
Change-Id: I6e9274c1e7444ad48c81fffd14dcae854bba24b2
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io')
0 files changed, 0 insertions, 0 deletions