aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-02-05 17:35:12 -0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-02-27 10:00:37 -0300
commit81a14439417552324ec6ca71f65ddf8e7cdd51c7 (patch)
tree3300f5fec6acc1ef4c95c333bf165ebb51248f68 /ChangeLog
parent39ef07441910c2d2f8c02579e808862194b9a23b (diff)
downloadglibc-81a14439417552324ec6ca71f65ddf8e7cdd51c7.zip
glibc-81a14439417552324ec6ca71f65ddf8e7cdd51c7.tar.gz
glibc-81a14439417552324ec6ca71f65ddf8e7cdd51c7.tar.bz2
wcsmbs: optimize wcscat
This patch rewrites wcscat using wcslen and wcscpy. This is similar to the optimization done on strcat by 6e46de42fe. The strcpy changes are mainly to add the internal alias to avoid PLT calls. Checked on x86_64-linux-gnu and a build against the affected architectures. * include/wchar.h (__wcscpy): New prototype. * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c (__wcscpy): Route internal symbol to generic implementation. * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy): Add internal __wcscpy alias. * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise. * sysdeps/s390/wcscpy.c (wcscpy): Likewise. * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise. * wcsmbs/wcscpy.c (wcscpy): Add * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to use generic implementation. * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ff8f8a..b963736 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+ * include/wchar.h (__wcscpy): New prototype.
+ * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
+ (__wcscpy): Route internal symbol to generic implementation.
+ * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
+ Add internal __wcscpy alias.
+ * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
+ * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
+ * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
+ * wcsmbs/wcscpy.c (wcscpy): Add
+ * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
+ use generic implementation.
+ * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
+
* wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
wmemset.