This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: 32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]