PATCH: 32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2
H.J. Lu
hjl.tools@gmail.com
Tue Feb 16 04:11:00 GMT 2010
On Mon, Feb 15, 2010 at 1:07 PM, Ulrich Drepper <drepper@redhat.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 02/12/2010 04:01 PM, H.J. Lu wrote:
>> Here is a patch to provide 32bit memcmp/strcmp/strncmp optimized for
>> SSSE3/SSS4.2. It can improve memcmp by up to 3X, strcmp by up
>> to 7X, strncmp by up to 5X.
>
> I added the code but had to fix a lot of bugs in it. Take a look at the
> changes. You didn't handle unwind info correctly.
I will update my version and verify unwind info. Then I will
compare it against glibc.
> Another bug: at the end of strcmp-sse4.S you had a conditional jump
> without anything following it. From what I can see the last test isn't
> necessary. Please confirm.
>
That is correct.
Thanks.
--
H.J.
More information about the Libc-alpha
mailing list