about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2023-02-28 14:23:59 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-03-02 16:41:43 -0300
commit92fdb11ae7aa1ab6b18622670ea702205cd6fdc5 (patch)
treeb998d54301a426299c2111c51bce18c5af6d305d /sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c
parenta46bb1523d2f39ba252f95b1fff738f1dff82132 (diff)
downloadglibc-92fdb11ae7aa1ab6b18622670ea702205cd6fdc5.tar.gz
glibc-92fdb11ae7aa1ab6b18622670ea702205cd6fdc5.tar.xz
glibc-92fdb11ae7aa1ab6b18622670ea702205cd6fdc5.zip
powerpc: Remove powerpc64 strncmp variants
The default, and power7 implementation just adds word aligned
access when inputs have the same aligment.  The unaligned case
is still done by byte operations.

This is already covered by the generic implementation, which also add
the unaligned input optimization.

Checked on powerpc64-linux-gnu built without multi-arch for powerpc64,
power7, power8, and power9 (build for le).
Reviewed-by: Rajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c b/sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c
new file mode 100644
index 0000000000..09cc009a91
--- /dev/null
+++ b/sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.c
@@ -0,0 +1,7 @@
+#if defined SHARED && IS_IN (libc)
+# define STRNCMP __strncmp_ppc
+# undef libc_hidden_builtin_def
+# define libc_hidden_builtin_def(name) \
+    __hidden_ver1 (__strncmp_ppc, __GI_strncmp, __strncmp_ppc);
+#endif
+#include <string/strncmp.c>