mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
402bf06952
SSE2 memchr computes "edx + ecx - 16" where ecx is less than 16. Use "edx - (16 - ecx)", instead of satured math, to avoid possible addition overflow. This replaces add %ecx, %edx sbb %eax, %eax or %eax, %edx sub $16, %edx with neg %ecx add $16, %ecx sub %ecx, %edx It is the same for x86_64, except for rcx/rdx, instead of ecx/edx. * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Use "edx + ecx - 16" to avoid possible addition overflow. * sysdeps/x86_64/memchr.S (memchr): Likewise. |
||
---|---|---|
.. | ||
fpu | ||
multiarch | ||
nptl | ||
add_n.S | ||
bcopy.S | ||
bzero.S | ||
dl-hash.h | ||
ffs.c | ||
hp-timing.h | ||
init-arch.h | ||
Makefile | ||
memcmp.S | ||
memcpy.S | ||
memmove.S | ||
mempcpy.S | ||
memset.S | ||
memusage.h | ||
pthread_spin_trylock.S | ||
stack-aliasing.h | ||
strcmp.S | ||
tst-stack-align.h |