glibc/sysdeps
Adhemerval Zanella 81a1443941 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.
2019-02-27 10:00:37 -03:00
..
aarch64 Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
alpha alpha: Fix __remqu corrupting $f3 register 2019-01-24 10:28:13 -08:00
arm Break further lines before not after operators. 2019-02-26 15:01:50 +00:00
csky Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
generic Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
gnu Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
hppa Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
htl hurd: advertise *_setpshared as not supported 2019-01-02 22:21:34 +01:00
hurd Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
i386 Add and move fall-through comments in system-specific code. 2019-02-26 02:09:18 +00:00
ia64 Fix a few typos in comments 2019-01-12 13:44:51 +00:00
ieee754 Avoid "inline" after return type in function definitions. 2019-02-06 17:16:43 +00:00
init_array Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
m68k wcsmbs: optimize wcpcpy 2019-02-27 10:00:34 -03:00
mach Break further lines before not after operators. 2019-02-26 15:01:50 +00:00
microblaze Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
mips Add and move fall-through comments in system-specific code. 2019-02-26 02:09:18 +00:00
nios2 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nptl Move remaining nptl_db headers to sysdeps/nptl 2019-02-16 08:25:16 +01:00
posix Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
powerpc wcsmbs: optimize wcscat 2019-02-27 10:00:37 -03:00
pthread Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
riscv RISC-V: Update nofpu ULPs 2019-01-24 13:55:05 -05:00
s390 wcsmbs: optimize wcscat 2019-02-27 10:00:37 -03:00
sh Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sparc Break further lines before not after operators. 2019-02-26 15:01:50 +00:00
unix Break further lines before not after operators. 2019-02-26 15:01:50 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
x86 Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
x86_64 wcsmbs: optimize wcscat 2019-02-27 10:00:37 -03:00