wcsmbs: optimize wcsncat

System Internals / glibc - Adhemerval Zanella [linaro.org] - 27 February 2019 13:00 EST

This patch rewrites wcsncat using wcslen, wcsnlen, and wmemcpy. This is similar to the optimization done on strncat by 3eb38795db and e80514b5a8.

Checked on x86_64-linux-gnu.

- wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and wmemcpy.

ddf21ec79f wcsmbs: optimize wcsncat
ChangeLog | 3 +++
wcsmbs/wcsncat.c | 53 +++++++----------------------------------------------
2 files changed, 10 insertions(+), 46 deletions(-)

Upstream: sourceware.org


  • Share