mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 02:40:06 +00:00
83d1cc42d8
This version uses general register based memory instruction to load data, because vector register based is slightly slower in emag. Character-matching is performed on 16-byte (both size and alignment) memory block in parallel each iteration. * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR. [!MEMCHR](MEMCHR): Set to __memchr. * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add memchr_generic and memchr_nosimd. * sysdeps/aarch64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list): Add memchr ifuncs. * sysdeps/aarch64/multiarch/memchr.c: New file. * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise. * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
8 lines
252 B
Makefile
8 lines
252 B
Makefile
ifeq ($(subdir),string)
|
|
sysdep_routines += memcpy_generic memcpy_thunderx memcpy_thunderx2 \
|
|
memcpy_falkor memmove_falkor \
|
|
memset_generic memset_falkor memset_emag \
|
|
memchr_generic memchr_nosimd \
|
|
strlen_generic strlen_asimd
|
|
endif
|