glibc/sysdeps/x86_64/multiarch
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
..
Makefile x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
bcopy.S
ifunc-avx2.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifunc-impl-list.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
ifunc-memcmp.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifunc-memmove.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifunc-memset.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifunc-sse4_2.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifunc-strcasecmp.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ifunc-strcpy.h x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
ifunc-wmemset.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memchr-avx2.S x86-64 memchr/wmemchr: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:24:13 -08:00
memchr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memcmp-avx2-movbe.S x86-64 memcmp/wmemcmp: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:26:07 -08:00
memcmp-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memcmp-sse4.S x86-64 memcmp/wmemcmp: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:26:07 -08:00
memcmp-ssse3.S x86-64 memcmp/wmemcmp: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:26:07 -08:00
memcmp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memcpy-ssse3-back.S x86-64 memcpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:27:36 -08:00
memcpy-ssse3.S x86-64 memcpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:27:36 -08:00
memcpy.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memcpy_chk-nonshared.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memcpy_chk.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memmove-avx-unaligned-erms.S
memmove-avx512-no-vzeroupper.S x86-64 memcpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:27:36 -08:00
memmove-avx512-unaligned-erms.S
memmove-sse2-unaligned-erms.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memmove-ssse3-back.S
memmove-ssse3.S
memmove-vec-unaligned-erms.S x86-64 memcpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:27:36 -08:00
memmove.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memmove_chk-nonshared.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memmove_chk.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mempcpy.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mempcpy_chk-nonshared.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mempcpy_chk.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memrchr-avx2.S x86-64 memrchr: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:30:12 -08:00
memrchr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memrchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memset-avx2-unaligned-erms.S
memset-avx512-no-vzeroupper.S x86-64 memset/wmemset: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:32:37 -08:00
memset-avx512-unaligned-erms.S
memset-sse2-unaligned-erms.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memset-vec-unaligned-erms.S x86-64 memset/wmemset: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:32:37 -08:00
memset.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memset_chk-nonshared.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
memset_chk.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
rawmemchr-avx2.S
rawmemchr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
rawmemchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sched_cpucount.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stpcpy-avx2.S x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
stpcpy-sse2-unaligned.S
stpcpy-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stpcpy-ssse3.S
stpcpy.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
stpncpy-avx2.S x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
stpncpy-c.c
stpncpy-sse2-unaligned.S
stpncpy-ssse3.S
stpncpy.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strcasecmp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcasecmp_l-avx.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcasecmp_l-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcasecmp_l-sse4_2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcasecmp_l-ssse3.S
strcasecmp_l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcat-avx2.S x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strcat-sse2-unaligned.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcat-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcat-ssse3.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcat.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strchr-avx2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strchr-sse2-no-bsf.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strchr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strchrnul-avx2.S
strchrnul-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strchrnul.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcmp-avx2.S x86-64 strncmp family: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:34:04 -08:00
strcmp-sse2-unaligned.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcmp-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcmp-sse4_2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcmp-sse42.S x86-64 strncmp family: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:34:04 -08:00
strcmp-ssse3.S
strcmp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcpy-avx2.S x86-64 strncpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:35:34 -08:00
strcpy-sse2-unaligned.S x86-64 strncpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:35:34 -08:00
strcpy-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcpy-ssse3.S x86-64 strncpy: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:35:34 -08:00
strcpy.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strcspn-c.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcspn-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strcspn.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strlen-avx2.S x86-64 strnlen/wcsnlen: Properly handle the length parameter [BZ# 24097] 2019-01-21 11:36:47 -08:00
strlen-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strlen.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncase.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncase_l-avx.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncase_l-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncase_l-sse4_2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncase_l-ssse3.S
strncase_l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncat-avx2.S x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strncat-c.c
strncat-sse2-unaligned.S
strncat-ssse3.S
strncat.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strncmp-avx2.S
strncmp-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncmp-sse4_2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncmp-ssse3.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncmp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strncpy-avx2.S x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strncpy-c.c
strncpy-sse2-unaligned.S
strncpy-ssse3.S
strncpy.c x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00
strnlen-avx2.S
strnlen-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strnlen.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strpbrk-c.c
strpbrk-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strpbrk.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strrchr-avx2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strrchr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strrchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strspn-c.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strspn-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strspn.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strstr-sse2-unaligned.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strstr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-multiarch.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
varshift.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
varshift.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcschr-avx2.S
wcschr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcschr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcscmp-avx2.S
wcscmp-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcscmp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcscpy-c.c wcsmbs: optimize wcscat 2019-02-27 10:00:37 -03:00
wcscpy-ssse3.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcscpy.c wcsmbs: optimize wcscat 2019-02-27 10:00:37 -03:00
wcslen-avx2.S
wcslen-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcslen.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcsncmp-avx2.S
wcsncmp-sse2.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcsncmp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcsnlen-avx2.S
wcsnlen-c.c
wcsnlen-sse4_1.S
wcsnlen.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcsrchr-avx2.S
wcsrchr-sse2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcsrchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wmemchr-avx2.S
wmemchr-sse2.S
wmemchr.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wmemcmp-avx2-movbe.S
wmemcmp-c.c
wmemcmp-sse4.S
wmemcmp-ssse3.S
wmemcmp.c Fix handling of collating elements in fnmatch (bug 17396, bug 16976) 2019-02-04 15:45:02 +01:00
wmemset.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wmemset_chk-nonshared.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wmemset_chk.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00