mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Check for zero size in memrchr for x86_64
This commit is contained in:
parent
5298ffa828
commit
81dcc7fb74
@ -1,5 +1,7 @@
|
||||
2011-10-13 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* sysdeps/x86_64/memrchr.S: Check for zero size.
|
||||
|
||||
* string/stratcliff.c: Add memrchr tests.
|
||||
|
||||
2011-10-12 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
|
||||
|
@ -282,6 +282,9 @@ L(return_null):
|
||||
|
||||
.p2align 4
|
||||
L(length_less16_offset0):
|
||||
test %edx, %edx
|
||||
jz L(return_null)
|
||||
|
||||
mov %dl, %cl
|
||||
pcmpeqb (%rdi), %xmm1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user