From: Ulrich Drepper Date: Sat, 25 Jul 2009 19:02:47 +0000 (-0700) Subject: Optimize x86-64 SSE4.2 strcmp. X-Git-Tag: fedora/glibc-2.10.90-9~1^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29e92fa5cd9c5c09a9c78563f35729fec9075e7f;p=thirdparty%2Fglibc.git Optimize x86-64 SSE4.2 strcmp. The file contained some code which was never used. Don't compile it in. --- diff --git a/ChangeLog b/ChangeLog index e95e94b4b2d..8246614d1a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-07-25 Ulrich Drepper + + * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being + compiled in. + 2009-07-24 Ulrich Drepper * sysdeps/unix/sysv/linux/configure.in: Don't automatically include diff --git a/sysdeps/x86_64/multiarch/strcmp.S b/sysdeps/x86_64/multiarch/strcmp.S index 37985036aa1..f9cf943e327 100644 --- a/sysdeps/x86_64/multiarch/strcmp.S +++ b/sysdeps/x86_64/multiarch/strcmp.S @@ -1457,6 +1457,9 @@ LABEL(use_sse4_2_ret): sub %edx, %eax ret +#if 0 + /* This code was in the origial submission but isn't used. + --drepper */ .p2align 4 LABEL(aftertail): pcmpeqb %xmm3, %xmm1 @@ -1467,6 +1470,8 @@ LABEL(aftertail): .p2align 4 LABEL(exit): lea -16(%r9, %rcx), %rax /* locate the exact offset for rdi */ +#endif + LABEL(less32bytes): lea (%rdi, %rax), %rdi /* locate the exact address for first operand(rdi) */ lea (%rsi, %rcx), %rsi /* locate the exact address for second operand(rsi) */