diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-01-16 14:22:39 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-31 21:51:31 +0100 |
commit | 1f6ae7444b38752657ddfcc00affc67031d03d6d (patch) | |
tree | 24e7492255a7b32c2a109627d1d536a2ac2e96ca /src/widgets/widgets/qwidgettextcontrol.cpp | |
parent | 388bfb273115de603d5000342168a0d4307e824b (diff) |
Merge all conversions from Latin-1 in qstring.cpp into a single function
Amazing how many places had the conversion duplicated. When compiling
with GCC under -O3 (which enables -ftree-vectorize), GCC would use SIMD
by using the PMOVZXBW instruction, but only if the -msse4.1 was passed
(or equivalent -march= switch), which almost no one did.
Also, the two lastIndexOf and the qt_find_latin1_string updates are also
fixing bugs because the old code forgot to cast the input to uchar
first. That meant the compiler was generating sign-extension from 8 to
16 bits, as opposed to zero-extension.
Change-Id: I4e2430a51dfc337994834524d3540382157509ef
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/widgets/widgets/qwidgettextcontrol.cpp')
0 files changed, 0 insertions, 0 deletions