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


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.


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