aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-12-13 14:40:28 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-12-13 14:40:28 -0500
commit1c92d9a0e0be6175915128157036cf138ef64af8 (patch)
tree7dcdec42baef53dbdeedef2efdf4fce3199383d0 /sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
parent17de3ee3c109a13ecec60b8bc9514f33c5b42178 (diff)
downloadglibc-1c92d9a0e0be6175915128157036cf138ef64af8.tar
glibc-1c92d9a0e0be6175915128157036cf138ef64af8.tar.gz
glibc-1c92d9a0e0be6175915128157036cf138ef64af8.tar.bz2
glibc-1c92d9a0e0be6175915128157036cf138ef64af8.zip
PowerPC: multiarch strncasecmp for PowerPC64
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
index 7980351aca..08a8861258 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
@@ -151,5 +151,20 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
IFUNC_IMPL_ADD (array, i, strcasecmp_l, 1,
__strcasecmp_l_ppc))
+ /* Support sysdeps/powerpc/powerpc64/multiarch/strncase.c. */
+ IFUNC_IMPL (i, name, strncasecmp,
+ IFUNC_IMPL_ADD (array, i, strncasecmp,
+ hwcap & PPC_FEATURE_HAS_VSX,
+ __strncasecmp_power7)
+ IFUNC_IMPL_ADD (array, i, strncasecmp, 1, __strncasecmp_ppc))
+
+ /* Support sysdeps/powerpc/powerpc64/multiarch/strncase_l.c. */
+ IFUNC_IMPL (i, name, strncasecmp_l,
+ IFUNC_IMPL_ADD (array, i, strncasecmp_l,
+ hwcap & PPC_FEATURE_HAS_VSX,
+ __strncasecmp_l_power7)
+ IFUNC_IMPL_ADD (array, i, strncasecmp_l, 1,
+ __strncasecmp_l_ppc))
+
return i;
}