glibc/sysdeps
Leonardo Sandoval 1a153e47fc x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2
Optimize x86-64 strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2.
It uses vector comparison as much as possible. In general, the larger the
source string, the greater performance gain observed, reaching speedups of
1.6x compared to SSE2 unaligned routines. Select AVX2 strcat/strncat,
strcpy/strncpy and stpcpy/stpncpy on AVX2 machines where vzeroupper is
preferred and AVX unaligned load is fast.

	* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
	strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
	stpcpy-avx2 and stpncpy-avx2.
	* sysdeps/x86_64/multiarch/ifunc-impl-list.c:
	(__libc_ifunc_impl_list): Add tests for __strcat_avx2,
	__strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
	and __stpncpy_avx2.
	* sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
	ifunc-strcpy.h}: rename header for a more generic name.
	* sysdeps/x86_64/multiarch/ifunc-strcpy.h:
	(IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
	AVX unaligned load is fast and vzeroupper is preferred.
	* sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file
	* sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise
	* sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise
	* sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise
	* sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise
	* sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise
2019-01-14 09:43:38 -06:00
..
aarch64 [AArch64] Add ifunc support for Ares 2019-01-09 10:35:34 +00:00
alpha soft-fp: Properly check _FP_W_TYPE_SIZE [BZ #24066] 2019-01-07 09:04:39 -08:00
arm
csky
generic nptl: Remove tst-cancel-wrappers test and related macros 2019-01-03 18:38:08 -02:00
gnu
hppa
htl hurd: advertise *_setpshared as not supported 2019-01-02 22:21:34 +01:00
hurd
i386 i386: Remove bogus THREAD_ATOMIC_* macros 2019-01-03 18:38:15 -02:00
ia64 Fix a few typos in comments 2019-01-12 13:44:51 +00:00
ieee754 Fix a few typos in comments 2019-01-12 13:44:51 +00:00
init_array
m68k
mach nptl: Remove tst-cancel-wrappers test and related macros 2019-01-03 18:38:08 -02:00
microblaze
mips Update MIPS libm-test-ulps. 2019-01-02 17:25:33 +00:00
nios2
nptl nptl: Cleanup cancellation macros 2019-01-03 18:38:16 -02:00
posix nptl: Cleanup cancellation macros 2019-01-03 18:38:16 -02:00
powerpc powerpc: Fix VSCR position in ucontext (bug 24088) 2019-01-11 15:17:25 -02:00
pthread
riscv RISC-V: Update LP64D libm-test-ulps. 2019-01-09 13:48:26 -08:00
s390
sh
sparc soft-fp: Properly check _FP_W_TYPE_SIZE [BZ #24066] 2019-01-07 09:04:39 -08:00
unix Fix a few typos in comments 2019-01-12 13:44:51 +00:00
wordsize-32
wordsize-64
x86
x86_64 x86-64: Optimize strcat/strncat, strcpy/strncpy and stpcpy/stpncpy with AVX2 2019-01-14 09:43:38 -06:00