mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-02 09:40:13 +00:00
23102686ec
Old code was both inefficient and wasted code size. New code (-62 bytes) and comparable or better performance in the page cross case. geometric_mean(N=20) of page cross cases New / Original: 0.960 size, align0, align1, ret, New Time/Old Time 1, 4095, 0, 0, 1.001 1, 4095, 0, 1, 0.999 1, 4095, 0, -1, 1.0 2, 4094, 0, 0, 1.0 2, 4094, 0, 1, 1.0 2, 4094, 0, -1, 1.0 3, 4093, 0, 0, 1.0 3, 4093, 0, 1, 1.0 3, 4093, 0, -1, 1.0 4, 4092, 0, 0, 0.987 4, 4092, 0, 1, 1.0 4, 4092, 0, -1, 1.0 5, 4091, 0, 0, 0.984 5, 4091, 0, 1, 1.002 5, 4091, 0, -1, 1.005 6, 4090, 0, 0, 0.993 6, 4090, 0, 1, 1.001 6, 4090, 0, -1, 1.003 7, 4089, 0, 0, 0.991 7, 4089, 0, 1, 1.0 7, 4089, 0, -1, 1.001 8, 4088, 0, 0, 0.875 8, 4088, 0, 1, 0.881 8, 4088, 0, -1, 0.888 9, 4087, 0, 0, 0.872 9, 4087, 0, 1, 0.879 9, 4087, 0, -1, 0.883 10, 4086, 0, 0, 0.878 10, 4086, 0, 1, 0.886 10, 4086, 0, -1, 0.873 11, 4085, 0, 0, 0.878 11, 4085, 0, 1, 0.881 11, 4085, 0, -1, 0.879 12, 4084, 0, 0, 0.873 12, 4084, 0, 1, 0.889 12, 4084, 0, -1, 0.875 13, 4083, 0, 0, 0.873 13, 4083, 0, 1, 0.863 13, 4083, 0, -1, 0.863 14, 4082, 0, 0, 0.838 14, 4082, 0, 1, 0.869 14, 4082, 0, -1, 0.877 15, 4081, 0, 0, 0.841 15, 4081, 0, 1, 0.869 15, 4081, 0, -1, 0.876 16, 4080, 0, 0, 0.988 16, 4080, 0, 1, 0.99 16, 4080, 0, -1, 0.989 17, 4079, 0, 0, 0.978 17, 4079, 0, 1, 0.981 17, 4079, 0, -1, 0.98 18, 4078, 0, 0, 0.981 18, 4078, 0, 1, 0.98 18, 4078, 0, -1, 0.985 19, 4077, 0, 0, 0.977 19, 4077, 0, 1, 0.979 19, 4077, 0, -1, 0.986 20, 4076, 0, 0, 0.977 20, 4076, 0, 1, 0.986 20, 4076, 0, -1, 0.984 21, 4075, 0, 0, 0.977 21, 4075, 0, 1, 0.983 21, 4075, 0, -1, 0.988 22, 4074, 0, 0, 0.983 22, 4074, 0, 1, 0.994 22, 4074, 0, -1, 0.993 23, 4073, 0, 0, 0.98 23, 4073, 0, 1, 0.992 23, 4073, 0, -1, 0.995 24, 4072, 0, 0, 0.989 24, 4072, 0, 1, 0.989 24, 4072, 0, -1, 0.991 25, 4071, 0, 0, 0.99 25, 4071, 0, 1, 0.999 25, 4071, 0, -1, 0.996 26, 4070, 0, 0, 0.993 26, 4070, 0, 1, 0.995 26, 4070, 0, -1, 0.998 27, 4069, 0, 0, 0.993 27, 4069, 0, 1, 0.999 27, 4069, 0, -1, 1.0 28, 4068, 0, 0, 0.997 28, 4068, 0, 1, 1.0 28, 4068, 0, -1, 0.999 29, 4067, 0, 0, 0.996 29, 4067, 0, 1, 0.999 29, 4067, 0, -1, 0.999 30, 4066, 0, 0, 0.991 30, 4066, 0, 1, 1.001 30, 4066, 0, -1, 0.999 31, 4065, 0, 0, 0.988 31, 4065, 0, 1, 0.998 31, 4065, 0, -1, 0.998 Reviewed-by: H.J. Lu <hjl.tools@gmail.com> |
||
---|---|---|
.. | ||
64 | ||
fpu | ||
multiarch | ||
nptl | ||
x32 | ||
____longjmp_chk.S | ||
__longjmp.S | ||
_mcount.S | ||
abort-instr.h | ||
add_n.S | ||
addmul_1.S | ||
bsd-_setjmp.S | ||
bsd-setjmp.S | ||
bzero.S | ||
configure | ||
configure.ac | ||
crti.S | ||
crtn.S | ||
dl-hwcaps-subdirs.c | ||
dl-irel.h | ||
dl-machine.h | ||
dl-procinfo.c | ||
dl-runtime.h | ||
dl-tls.c | ||
dl-tls.h | ||
dl-tlsdesc.h | ||
dl-tlsdesc.S | ||
dl-trampoline.h | ||
dl-trampoline.S | ||
ffs.c | ||
ffsll.c | ||
htonl.S | ||
ifuncmain8.c | ||
ifuncmod8.c | ||
Implies | ||
isa.h | ||
jmpbuf-offsets.h | ||
jmpbuf-unwind.h | ||
l10nflist.c | ||
link-defines.sym | ||
locale-defines.sym | ||
localplt.data | ||
lshift.S | ||
machine-gmon.h | ||
Makefile | ||
memchr.S | ||
memcmp.S | ||
memcmpeq.S | ||
memcpy_chk.S | ||
memcpy.S | ||
memmove_chk.S | ||
memmove.S | ||
mempcpy_chk.S | ||
mempcpy.S | ||
memrchr.S | ||
memset_chk.S | ||
memset.S | ||
mp_clz_tab.c | ||
mul_1.S | ||
preconfigure | ||
preconfigure.ac | ||
rawmemchr.S | ||
rshift.S | ||
rtld-offsets.sym | ||
setjmp.S | ||
stackguard-macros.h | ||
stackinfo.h | ||
start.S | ||
stpcpy.S | ||
strcasecmp_l-nonascii.c | ||
strcasecmp_l.S | ||
strcasecmp.S | ||
strcat.S | ||
strchr.S | ||
strchrnul.S | ||
strcmp.S | ||
strcpy.S | ||
strlen.S | ||
strncase_l-nonascii.c | ||
strncase_l.S | ||
strncase.S | ||
strncmp.S | ||
strnlen.S | ||
strrchr.S | ||
sub_n.S | ||
submul_1.S | ||
sysdep.h | ||
tls_get_addr.S | ||
tlsdesc.c | ||
tlsdesc.sym | ||
tst-audit3.c | ||
tst-audit4-aux.c | ||
tst-audit4.c | ||
tst-audit5.c | ||
tst-audit6.c | ||
tst-audit7.c | ||
tst-audit10-aux.c | ||
tst-audit10.c | ||
tst-audit.h | ||
tst-auditmod3a.c | ||
tst-auditmod3b.c | ||
tst-auditmod4a.c | ||
tst-auditmod4b.c | ||
tst-auditmod5a.c | ||
tst-auditmod5b.c | ||
tst-auditmod6a.c | ||
tst-auditmod6b.c | ||
tst-auditmod6c.c | ||
tst-auditmod7a.c | ||
tst-auditmod7b.c | ||
tst-auditmod10a.c | ||
tst-auditmod10b.c | ||
tst-avx512-aux.c | ||
tst-avx512.c | ||
tst-avx512mod.c | ||
tst-avx-aux.c | ||
tst-avx.c | ||
tst-avxmod.c | ||
tst-glibc-hwcaps.c | ||
tst-platform-1.c | ||
tst-platformmod-1.c | ||
tst-platformmod-2.c | ||
tst-quad1.c | ||
tst-quad1pie.c | ||
tst-quad2.c | ||
tst-quad2pie.c | ||
tst-quadmod1.S | ||
tst-quadmod1pie.S | ||
tst-quadmod2.S | ||
tst-quadmod2pie.S | ||
tst-rsi-strlen.c | ||
tst-rsi-wcslen.c | ||
tst-split-dynreloc.c | ||
tst-split-dynreloc.lds | ||
tst-sse.c | ||
tst-ssemod.c | ||
tst-x86_64-1.c | ||
tst-x86_64mod-1.c | ||
tst-x86-64-tls-1.c | ||
Versions | ||
wcschr.S | ||
wcscmp.S | ||
wcslen.S | ||
wcsrchr.S | ||
wmemcmp.S | ||
wmemset_chk.S | ||
wmemset.S | ||
wordcopy.c |