about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/multiarch/Makefile
diff options
context:
space:
mode:
authorMAHESH BODAPATI <bmahi496@linux.ibm.com>2023-12-12 08:52:45 -0600
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>2023-12-14 14:40:14 -0600
commitb9182c793caa05df5d697427c0538936e6396d4b (patch)
tree2fe92e68ae203533eb5a2cc1520d84b15b3c992e /sysdeps/powerpc/powerpc64/multiarch/Makefile
parentd0aefec49941cf6d97e2244d6aa20bafc26d5942 (diff)
downloadglibc-b9182c793caa05df5d697427c0538936e6396d4b.tar.gz
glibc-b9182c793caa05df5d697427c0538936e6396d4b.tar.xz
glibc-b9182c793caa05df5d697427c0538936e6396d4b.zip
powerpc : Add optimized memchr for POWER10
Optimized memchr for POWER10 based on existing rawmemchr and strlen.
Reordering instructions and loop unrolling helped in getting better performance.
Reviewed-by: Rajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/Makefile')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile
index d7824a922b..594fbb8058 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/Makefile
+++ b/sysdeps/powerpc/powerpc64/multiarch/Makefile
@@ -31,10 +31,10 @@ sysdep_routines += memcpy-power8-cached memcpy-power7 memcpy-a2 memcpy-power6 \
 		   strncase-power8
 
 ifneq (,$(filter %le,$(config-machine)))
-sysdep_routines += memcmp-power10 memcpy-power10 memmove-power10 memset-power10 \
-		   rawmemchr-power9 rawmemchr-power10 \
-		   strcmp-power9 strcmp-power10 strncmp-power9 \
-		   strcpy-power9 stpcpy-power9 \
+sysdep_routines += memchr-power10 memcmp-power10 memcpy-power10 \
+		   memmove-power10 memset-power10 rawmemchr-power9 \
+		   rawmemchr-power10 strcmp-power9 strcmp-power10 \
+		   strncmp-power9 strcpy-power9 stpcpy-power9 \
 		   strlen-power9 strncpy-power9 stpncpy-power9 strlen-power10
 endif
 CFLAGS-strncase-power7.c += -mcpu=power7 -funroll-loops