diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-12-22 18:52:48 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-06-22 14:26:56 (GMT) |
commit | 45d2d36c9dbcbce403c78838ea52acd1ab111b68 (patch) | |
tree | 76a0888856b6750e7869456c9a4f0984b9bc048f /src/3rdparty/webkit/WebCore/generated/JSHTMLSourceElement.cpp | |
parent | af3bb0f146ec357ae6daf752a5f8bbdb074cde20 (diff) | |
download | Qt-45d2d36c9dbcbce403c78838ea52acd1ab111b68.zip Qt-45d2d36c9dbcbce403c78838ea52acd1ab111b68.tar.gz Qt-45d2d36c9dbcbce403c78838ea52acd1ab111b68.tar.bz2 |
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 'src/3rdparty/webkit/WebCore/generated/JSHTMLSourceElement.cpp')
0 files changed, 0 insertions, 0 deletions