glibc/sysdeps
Noah Goldstein 08cbcd4dbc x86: Remove unnecessary overflow check from wcsnlen-sse4_1.S
No bug. The way wcsnlen will check if near the end of maxlen
is the following macro:

	mov	%r11, %rsi;	\
	subq	%rax, %rsi;	\
	andq	$-64, %rax;	\
	testq	$-64, %rsi;	\
	je	L(strnlen_ret)

Which words independently of s + maxlen overflowing. So the
second overflow check is unnecissary for correctness and
just extra overhead in the common no overflow case.

test-strlen.c, test-wcslen.c, test-strnlen.c and test-wcsnlen.c are
all passing

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
2021-06-24 19:14:19 -04:00
..
aarch64 AArch64: Add support for roundeven[f] 2021-06-08 13:33:09 +01:00
alpha nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
arc ARC: Update ulps 2021-04-14 09:24:45 -07:00
arm nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
csky Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
generic posix: Consolidate fork implementation 2021-06-24 10:02:06 -03:00
gnu posix: Add glob64 with 64-bit time_t support 2021-06-15 10:42:11 -03:00
hppa nptl: Move pthread_spin_init, Move pthread_spin_unlock into libc 2021-04-23 17:06:44 +02:00
htl Consolidate pthread_atfork 2021-06-24 10:04:41 -03:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 Properly check stack alignment [BZ #27901] 2021-05-24 07:42:12 -07:00
ia64 nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
ieee754 configure: Replaced obsolete AC_TRY_COMPILE 2021-06-04 10:16:00 -03:00
m68k m68: Fix build after 9acda61d94 2021-04-06 15:10:31 -03:00
mach posix: Consolidate fork implementation 2021-06-24 10:02:06 -03:00
microblaze Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
mips dlfcn: Cleanups after -ldl is no longer required 2021-06-03 09:11:45 +02:00
nios2 Update Nios II libm-test-ulps. 2021-04-01 19:41:40 +00:00
nptl Consolidate pthread_atfork 2021-06-24 10:04:41 -03:00
posix hurd: Fix build after 52a5fe70a2 2021-06-23 14:14:48 -03:00
powerpc Add build option to disable usage of scv on powerpc 2021-06-10 16:23:25 -03:00
pthread Consolidate pthread_atfork 2021-06-24 10:04:41 -03:00
riscv nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
s390 iconvdata: Move gconv-modules configuration to gconv-modules.conf 2021-06-09 09:47:16 +05:30
sh nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
sparc nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
unix posix: Consolidate fork implementation 2021-06-24 10:02:06 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x86 x86: Fix tst-cpu-features-cpuinfo on Ryzen 9 (BZ #27873) 2021-06-24 09:57:46 -03:00
x86_64 x86: Remove unnecessary overflow check from wcsnlen-sse4_1.S 2021-06-24 19:14:19 -04:00