about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-04 10:54:29 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-04 10:54:29 -0700
commit747785f2b3afbc8b900083988957bff11bb6b11f (patch)
treec8f7955aa373196e2dc66df0c10715703cb5115d
parent2f083d7511460b3beea2df165c3e43742f73f3c9 (diff)
downloadglibc-747785f2b3afbc8b900083988957bff11bb6b11f.tar.gz
glibc-747785f2b3afbc8b900083988957bff11bb6b11f.tar.xz
glibc-747785f2b3afbc8b900083988957bff11bb6b11f.zip
Tiny strlen for x86-64 optimization.
I didn't remove an instruction from a previous version in the final
version.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/x86_64/strlen.S1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 72910ce610..cb094d1863 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-04  Ulrich Drepper  <drepper@redhat.com>
+
+	* sysdeps/x86_64/strlen.S: Remove useless instruction.
+
 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
diff --git a/sysdeps/x86_64/strlen.S b/sysdeps/x86_64/strlen.S
index 86bb8a50a9..572f3c2e41 100644
--- a/sysdeps/x86_64/strlen.S
+++ b/sysdeps/x86_64/strlen.S
@@ -34,7 +34,6 @@ ENTRY(strlen)
 	pcmpeqb	%xmm1, %xmm0
 	shl	%cl, %esi
 	pmovmskb %xmm0, %edx
-	xorl	%eax, %eax
 	negq	%r8
 	andl	%esi, %edx
 	jnz	1f