diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-12-22 19:52:48 +0100 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-06-22 16:26:56 +0200 |
commit | 45d2d36c9dbcbce403c78838ea52acd1ab111b68 (patch) | |
tree | 76a0888856b6750e7869456c9a4f0984b9bc048f /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp | |
parent | af3bb0f146ec357ae6daf752a5f8bbdb074cde20 (diff) | |
download | qt4-tools-45d2d36c9dbcbce403c78838ea52acd1ab111b68.tar.gz |
Add an SSE4.2 even simpler version of toLatin1
Use the new PCMPESTRM instruction (Parallel CoMPare Explicit-length
STRings with result in a Mask) which is added in SSE4.2 for
facilitating string operations. The "compare ranges" mode allows us to
search for characters outside the Latin 1 range and then use the
SSE4.1 PBLENDVB instruction to replace those with question marks.
Unlike previous SSE compare instructions, the PCMPxSTRx family allows
us to operate on unsigned 16-bit values. This saves us another
parallel add.
Reviewed-By: Samuel Rødal
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalueiterator.cpp')
0 files changed, 0 insertions, 0 deletions