This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: 32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2
- From: Ulrich Drepper <drepper at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 15 Feb 2010 13:07:46 -0800
- Subject: Re: PATCH: 32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2
- References: <20100213000156.GA17503@lucon.org>
-----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.
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.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkt5t6IACgkQ2ijCOnn/RHRXRQCfU50UD5SaW5SkOL9sjxDgaFjh
1IMAn3CzbD4rWVxfj1IBFRKx/rj6t3YF
=x61r
-----END PGP SIGNATURE-----