aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-12-23 13:36:34 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-01-13 11:28:36 -0500
commit94c9680945369d63ef9ed266a29f28ebaaaeb5ce (patch)
treeb6c8f97275fb5372fc47ec058ad7f0ce0b771f5b /sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
parent96d6fd6c4060d739abb1822e7ad633af749532b2 (diff)
downloadglibc-94c9680945369d63ef9ed266a29f28ebaaaeb5ce.tar
glibc-94c9680945369d63ef9ed266a29f28ebaaaeb5ce.tar.gz
glibc-94c9680945369d63ef9ed266a29f28ebaaaeb5ce.tar.bz2
glibc-94c9680945369d63ef9ed266a29f28ebaaaeb5ce.zip
powerpc: Optimized strcat for POWER8/PPC64
With new optimized strcpy for POWER8, this patch adds an optimized strcat which uses it along with default implementation at strings/.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
index 88c8234ff4..dbb21fddb9 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
@@ -303,6 +303,9 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
/* Support sysdeps/powerpc/powerpc64/multiarch/strcat.c. */
IFUNC_IMPL (i, name, strcat,
IFUNC_IMPL_ADD (array, i, strcat,
+ hwcap2 & PPC_FEATURE2_ARCH_2_07,
+ __strcat_power8)
+ IFUNC_IMPL_ADD (array, i, strcat,
hwcap & PPC_FEATURE_HAS_VSX,
__strcat_power7)
IFUNC_IMPL_ADD (array, i, strcat, 1,