glibc/sysdeps/aarch64
Siddhesh Poyarekar 436e4d5b96 [aarch64] Add an ASIMD variant of strlen for falkor
This variant of strlen uses vector loads and operations to reduce the
size of the code and also eliminate the non-ascii fallback.  This
works very well for falkor because of its two vector units and
efficient vector ops.  In the best case it reduces latency of cases in
bench-strlen by 48%, with gains throughout the benchmark.
strlen-walk also sees uniform gains in the 5%-15% range.

Overall the routine appears to work better than the stock one for falkor
regardless of the benchmark, length of string or cache state.

The same cannot be said of a53 and a72 though.  a53 performance was
greatly reduced and for a72 it was a bit of a mixed bag, slightly on the
negative side but I reckon it might be fast in some situations.

	* sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
	[!STRLEN](STRLEN): Set to __strlen.
	* sysdeps/aarch64/multiarch/strlen.c: New file.
	* sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
	* sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
	* sysdeps/aarch64/multiarch/ifunc-impl-list.c
	(__libc_ifunc_impl_list): Add strlen.
	* sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
	strlen_generic and strlen_asimd.

Reviewed-By: szabolcs.nagy@arm.com
CC: pinskia@gmail.com
2018-08-15 23:01:33 +05:30
..
bits
fpu Clean up converttoint handling and document the semantics 2018-08-10 17:23:16 +01:00
multiarch [aarch64] Add an ASIMD variant of strlen for falkor 2018-08-15 23:01:33 +05:30
nptl
__longjmp.S
abort-instr.h
atomic-machine.h
bsd-_setjmp.S
bsd-setjmp.S
configure
configure.ac
crti.S Mark _init and _fini as hidden [BZ #23145] 2018-06-08 10:28:52 -07:00
crtn.S
dl-irel.h
dl-link.sym
dl-machine.h elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
dl-sysdep.h
dl-tls.h
dl-tlsdesc.h
dl-tlsdesc.S
dl-trampoline.S
dl-tunables.list Rename the glibc.tune namespace to glibc.cpu 2018-08-02 23:49:19 +05:30
e_sqrtl.c Remove sysdeps/aarch64/soft-fp directory. 2018-05-22 17:23:34 +00:00
Implies Remove sysdeps/aarch64/soft-fp directory. 2018-05-22 17:23:34 +00:00
jmpbuf-offsets.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
libm-test-ulps Improve performance of sinf and cosf 2018-08-14 10:45:59 +01:00
libm-test-ulps-name
linkmap.h
machine-gmon.h
Makefile Remove sysdeps/aarch64/soft-fp directory. 2018-05-22 17:23:34 +00:00
math-tests.h
mcount.c
memchr.S
memcmp.S
memcpy.S
memmove.S
memset-reg.h
memset.S
memusage.h
preconfigure
rawmemchr.S
setjmp.S
sfp-machine.h Remove sysdeps/aarch64/soft-fp directory. 2018-05-22 17:23:34 +00:00
sotruss-lib.c
stackinfo.h
start.S
stpcpy.S
strchr.S
strchrnul.S
strcmp.S
strcpy.S
string_private.h
strlen.S [aarch64] Add an ASIMD variant of strlen for falkor 2018-08-15 23:01:33 +05:30
strncmp.S
strnlen.S
strrchr.S
sysdep.h
tls-macros.h
tlsdesc.c
tlsdesc.sym
tst-audit.h
Versions