From: Ulrich Drepper Date: Fri, 5 Jun 2009 18:39:45 +0000 (-0700) Subject: Add missing cleanups from SSE4.2 x86-64 strlen. X-Git-Tag: upstream/2.30~13551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f85a9e72e21c3fc79dbad53c170251a16d1760ab;p=external%2Fglibc.git Add missing cleanups from SSE4.2 x86-64 strlen. --- diff --git a/sysdeps/x86_64/multiarch/strlen.S b/sysdeps/x86_64/multiarch/strlen.S index bf889c1..3f03b69 100644 --- a/sysdeps/x86_64/multiarch/strlen.S +++ b/sysdeps/x86_64/multiarch/strlen.S @@ -40,6 +40,7 @@ ENTRY(strlen) END(strlen) + .align 16 .type __strlen_sse42, @function __strlen_sse42: pxor %xmm2, %xmm2 @@ -63,9 +64,9 @@ __strlen_sse42: subq %r8, %rax ret -1: bsfl %edx, %eax - leaq (%rdi,%rax), %rax - subq %r8, %rax +1: subq %r8, %rdi + bsfl %edx, %eax + addq %rdi, %rax ret .size __strlen_sse42, .-__strlen_sse42