wcsmbs: optimize wcpncpy

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

This patch rewrites wcpncpy using wcslen, wmemcpy, and wmemset. This is similar to the optimization done on stpncpy by 48497aba8e.

Checked on x86_64-linux-gnu.

- wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and wmemset.

39ef074419 wcsmbs: optimize wcpncpy
ChangeLog | 3 +++
wcsmbs/wcpncpy.c | 57 +++++---------------------------------------------------
2 files changed, 8 insertions(+), 52 deletions(-)

Upstream: sourceware.org


  • Share