wcsmbs: optimize wcscpy

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

This patch rewrites wcscpy using wcslen and wmemcpy. This is similar to the optimization done on strcpy by b863d2bc4d.

Checked on x86_64-linux-gnu.

- wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.

4d8015639a wcsmbs: optimize wcscpy
ChangeLog | 2 ++
wcsmbs/wcscpy.c | 31 +------------------------------
2 files changed, 3 insertions(+), 30 deletions(-)

Upstream: sourceware.org


  • Share