aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidya Ranganathan <vidya@linux.vnet.ibm.com>2014-06-11 22:21:20 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-07-02 14:04:21 -0500
commitbc8ea38590070604006399e42469087e943fc8ec (patch)
treeb8aff1d26a239a650adf55f12e1b297db3af04af /sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
parentAdd missing #include for MIN use in dl-sysdep.c. (diff)
downloadglibc-bc8ea38590070604006399e42469087e943fc8ec.tar.gz
glibc-bc8ea38590070604006399e42469087e943fc8ec.tar.bz2
glibc-bc8ea38590070604006399e42469087e943fc8ec.zip
PowerPC: strcat optimization for PPC64/POWER7
This patch adds an ifunc power7 strcat symbol that uses the logic on sysdeps/powerpc/strcat.c but call power7 strlen/strcpy symbols instead of default ones.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
index b3933a52d9..ec2e027f6b 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
@@ -301,5 +301,14 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
__strcmp_power7)
IFUNC_IMPL_ADD (array, i, strcmp, 1,
__strcmp_ppc))
+
+ /* Support sysdeps/powerpc/powerpc64/multiarch/strcat.c. */
+ IFUNC_IMPL (i, name, strcat,
+ IFUNC_IMPL_ADD (array, i, strcat,
+ hwcap & PPC_FEATURE_HAS_VSX,
+ __strcat_power7)
+ IFUNC_IMPL_ADD (array, i, strcat, 1,
+ __strcat_ppc))
+
return i;
}