depend-cleanup: bea89d038a also moved memchr

Commit bea89d038a added strlcat but also introduced a memchr wrapper
in the source tree rather than using the autogenerated one used for
AARCH64_STRING_FUNCS.  Move memchr.S to MDSRS and add a cleanup rule for
the old wrapper.

Reviewed by:	fuz
Sponsored by:	The FreeBSD Foundation
Fixes: bea89d038a ("lib/libc/aarch64/string: add strlcat SIMD implementation")
Differential Revision: https://reviews.freebsd.org/D48502
This commit is contained in:
Ed Maste 2025-01-17 10:05:26 -05:00
parent e4f2733df8
commit d355c28a09
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,6 @@
#
AARCH64_STRING_FUNCS= \
memchr \
memcmp \
memcpy \
memmove \
@ -19,6 +18,7 @@ AARCH64_STRING_FUNCS= \
# SIMD-enhanced routines not derived from Arm's code
MDSRCS+= \
memchr.S \
strcmp.S \
strspn.S \
strcspn.S \

View file

@ -270,8 +270,9 @@ if [ $MACHINE_ARCH = aarch64 ]; then
# 20250110 3dc5429158cf add strncat SIMD implementation
clean_dep lib/libc strncat c
# 20250110 bea89d038ac5 add strlcat SIMD implementation
# 20250110 bea89d038ac5 add strlcat SIMD implementation, and move memchr
clean_dep lib/libc strlcat c
run rm -f "$OBJTOP"/lib/libc/memchr.S
# 20250110 3863fec1ce2d add strlen SIMD implementation
clean_dep lib/libc strlen S arm-optimized-routines