aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/aarch64/string/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/aarch64/string/Makefile.inc')
-rw-r--r--lib/libc/aarch64/string/Makefile.inc28
1 files changed, 24 insertions, 4 deletions
diff --git a/lib/libc/aarch64/string/Makefile.inc b/lib/libc/aarch64/string/Makefile.inc
index cabc79e4f351..35523fb954be 100644
--- a/lib/libc/aarch64/string/Makefile.inc
+++ b/lib/libc/aarch64/string/Makefile.inc
@@ -4,7 +4,6 @@
#
AARCH64_STRING_FUNCS= \
- memchr \
memcmp \
memcpy \
memmove \
@@ -13,13 +12,30 @@ AARCH64_STRING_FUNCS= \
stpcpy \
strchr \
strchrnul \
- strcmp \
strcpy \
- strlen \
- strncmp \
strnlen \
strrchr
+# SIMD-enhanced routines not derived from Arm's code
+MDSRCS+= \
+ memchr.S \
+ strcmp.S \
+ strspn.S \
+ strcspn.S \
+ strpbrk.c \
+ strsep.c \
+ strcat.c \
+ strlcpy.S \
+ strncmp.S \
+ memccpy.S \
+ strncat.c \
+ strlcat.c \
+ strlen.S \
+ timingsafe_bcmp.S \
+ timingsafe_memcmp.S \
+ bcopy.c \
+ bzero.c
+
#
# Add the above functions. Generate an asm file that includes the needed
# Arm Optimized Routines file defining the function name to the libc name.
@@ -38,3 +54,7 @@ CLEANFILES+= ${FUNC}.S
MDSRCS+= ${FUNC}.S
CFLAGS.${FUNC}.S+=-I${SRCTOP}/contrib/arm-optimized-routines/string
.endfor
+
+# memchr.S is a wrapper in the src tree for the implementation from
+# arm-optimized-routines
+CFLAGS.memchr.S+=-I${SRCTOP}/contrib/arm-optimized-routines/string