about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/multiarch/Makefile
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2017-04-18 11:28:56 +0530
committerRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2017-04-18 11:28:56 +0530
commit6c6ab1fc49d524ab1892cb20ee74352ace0b8034 (patch)
tree716e71e31d63e0b534e2ff47fe6bb8f192f81d76 /sysdeps/powerpc/powerpc64/multiarch/Makefile
parent2604882cefd3281679b8177245fdebc7061b8695 (diff)
downloadglibc-6c6ab1fc49d524ab1892cb20ee74352ace0b8034.tar.gz
glibc-6c6ab1fc49d524ab1892cb20ee74352ace0b8034.tar.xz
glibc-6c6ab1fc49d524ab1892cb20ee74352ace0b8034.zip
powerpc64: strrchr optimization for power8
P7 code is used for <=32B strings and for > 32B vectorized loops are used.
This shows as an average 25% improvement depending on the position of search
character.  The performance is same for shorter strings.
Tested on ppc64 and ppc64le.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/Makefile')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile
index 0eb3d0710d..7d4f35cb1c 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/Makefile
+++ b/sysdeps/powerpc/powerpc64/multiarch/Makefile
@@ -15,7 +15,7 @@ sysdep_routines += memcpy-power7 memcpy-a2 memcpy-power6 memcpy-cell \
 		   strchrnul-power8 strchrnul-power7 strchrnul-ppc64 \
 		   strcpy-power8 strcpy-power7 strcpy-ppc64 stpcpy-power8 \
 		   stpcpy-power7 stpcpy-ppc64 \
-		   strrchr-power7 strrchr-ppc64 \
+		   strrchr-power8 strrchr-power7 strrchr-ppc64 \
 		   strncat-power8 strncat-power7 strncat-ppc64 \
 		   strncpy-power7 strncpy-ppc64 \
 		   stpncpy-power8 stpncpy-power7 stpncpy-ppc64 \