diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2021-06-23 19:19:34 -0400 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2021-06-24 19:14:19 -0400 |
commit | 08cbcd4dbc686bb38ec3093aff2f919fbff5ec17 (patch) | |
tree | 970437dd91d18f00c146e93265d2b0aeae8f9c1d /sysdeps/unix/sysv/linux/update-syscall-lists.py | |
parent | bd3a2b3ed18fdeff0b370110c35850b51d025e8c (diff) | |
download | glibc-08cbcd4dbc686bb38ec3093aff2f919fbff5ec17.tar glibc-08cbcd4dbc686bb38ec3093aff2f919fbff5ec17.tar.gz glibc-08cbcd4dbc686bb38ec3093aff2f919fbff5ec17.tar.bz2 glibc-08cbcd4dbc686bb38ec3093aff2f919fbff5ec17.zip |
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/update-syscall-lists.py')
0 files changed, 0 insertions, 0 deletions