summaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/memchr.S
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-05-09 18:40:14 +0000
committerJakub Jelinek <jakub@redhat.com>2009-05-09 18:40:14 +0000
commit8075bb0fc6925bfb43f0db8e9c5bf22eb9e9f119 (patch)
tree08716fe3e8c25a9732600ec718325785e5352c33 /sysdeps/x86_64/memchr.S
parent83489168c2447e3fe351dbb302b1026dc9fc512c (diff)
Updated to fedora-glibc-20090509T1828cvs/fedora-glibc-2_10-1
Diffstat (limited to 'sysdeps/x86_64/memchr.S')
-rw-r--r--sysdeps/x86_64/memchr.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86_64/memchr.S b/sysdeps/x86_64/memchr.S
index 09ba6d4f8d..54b7af534c 100644
--- a/sysdeps/x86_64/memchr.S
+++ b/sysdeps/x86_64/memchr.S
@@ -26,7 +26,9 @@ ENTRY (memchr)
movq %rdi, %rcx
punpcklbw %xmm1, %xmm1
andq $~15, %rdi
+ testq %rdx, %rdx
punpcklbw %xmm1, %xmm1
+ jz 3f
orl $0xffffffff, %esi
movdqa (%rdi), %xmm0
pshufd $0, %xmm1, %xmm1