summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-12-22 19:52:48 +0100
committerThiago Macieira <thiago.macieira@nokia.com>2011-06-22 16:26:56 +0200
commit45d2d36c9dbcbce403c78838ea52acd1ab111b68 (patch)
tree76a0888856b6750e7869456c9a4f0984b9bc048f /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
parentaf3bb0f146ec357ae6daf752a5f8bbdb074cde20 (diff)
downloadqt4-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