about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/power7/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-19 17:46:55 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-23 08:50:00 -0300
commit1e9a550ba41a5453c6578bb748fe2223a87e3024 (patch)
treeec31fea111f079661edec13dd62f386c7eee2124 /sysdeps/powerpc/powerpc64/power7/Makefile
parentf4c142bb9fe6b02c0af8cfca8a920091e2dba44b (diff)
downloadglibc-1e9a550ba41a5453c6578bb748fe2223a87e3024.tar.gz
glibc-1e9a550ba41a5453c6578bb748fe2223a87e3024.tar.xz
glibc-1e9a550ba41a5453c6578bb748fe2223a87e3024.zip
powerpc: Remove power7 strstr optimization
The optimization is not faster than the generic algorithm,
using the bench-strstr the geometric mean running on a POWER10 machine
using gcc 13.1.1 is 482.47 while the default __strstr_ppc is 340.97
(which uses the generic implementation).

Also, there is no need to redirect the internal str*/mem* call
to optimized version, internal ifunc is supported and enabled
for internal calls (meaning that the generic implementation
will use any asm optimization if available).

Checked on powerpc64le-linux-gnu.
Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc64/power7/Makefile')
-rw-r--r--sysdeps/powerpc/powerpc64/power7/Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/power7/Makefile b/sysdeps/powerpc/powerpc64/power7/Makefile
index 9a0e7474bb..7eeff4b770 100644
--- a/sysdeps/powerpc/powerpc64/power7/Makefile
+++ b/sysdeps/powerpc/powerpc64/power7/Makefile
@@ -9,7 +9,6 @@ $(foreach suf,$(all-object-suffixes),$(objpfx)rtld$(suf)): \
 endif
 
 ifeq ($(subdir),string)
-sysdep_routines += strstr-ppc64
 CFLAGS-strncase.c += -funroll-loops
 CFLAGS-strncase_l.c += -funroll-loops
 endif