diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-06-16 10:23:31 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-16 10:23:31 -0700 |
commit | fab8238de69de67637d21923b3ec1c26e4ce8450 (patch) | |
tree | c5e43b38acd54f9f46d3856a9b71d22b70ce1b3d /sysdeps/x86_64/memchr.S | |
parent | 435aa54b3b9c1c87498e8bb3831394fd42220fa7 (diff) | |
download | glibc-fab8238de69de67637d21923b3ec1c26e4ce8450.tar.gz glibc-fab8238de69de67637d21923b3ec1c26e4ce8450.tar.xz glibc-fab8238de69de67637d21923b3ec1c26e4ce8450.zip |
Fix x86-64 memchr for large lengths.
Diffstat (limited to 'sysdeps/x86_64/memchr.S')
-rw-r--r-- | sysdeps/x86_64/memchr.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/x86_64/memchr.S b/sysdeps/x86_64/memchr.S index 54b7af534c..6082aa7f76 100644 --- a/sysdeps/x86_64/memchr.S +++ b/sysdeps/x86_64/memchr.S @@ -41,7 +41,7 @@ ENTRY (memchr) movl $16, %esi jnz 1f cmpq %rsi, %rdx - jle 3f + jbe 3f 2: movdqa (%rdi,%rsi), %xmm0 leaq 16(%rsi), %rsi @@ -50,7 +50,7 @@ ENTRY (memchr) testl %ecx, %ecx jnz 1f cmpq %rsi, %rdx - jg 2b + ja 2b 3: xorl %eax, %eax ret @@ -60,7 +60,7 @@ ENTRY (memchr) addq %rcx, %rax leaq -16(%rsi,%rcx), %rsi cmpq %rsi, %rdx - jle 3b + jbe 3b ret END (memchr) |