1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Define _HAVE_STRING_ARCH_mempcpy to 1 for x86

Since x86 has an optimized mempcpy and GCC can inline mempcpy on x86,
define _HAVE_STRING_ARCH_mempcpy to 1 for x86.

	[BZ #19759]
	* sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
This commit is contained in:
H.J. Lu
2016-03-08 10:57:31 -08:00
parent 183a34dc4a
commit 2b35e48c0c
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,9 @@
/* Use the unaligned string inline ABI. */
#define _STRING_INLINE_unaligned 1
/* Don't inline mempcpy into memcpy as x86 has an optimized mempcpy. */
#define _HAVE_STRING_ARCH_mempcpy 1
/* Enable inline functions only for i486 or better when compiling for
ia32. */
#if !defined __x86_64__ && (defined __i486__ || defined __pentium__ \