Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
H.J. Lu committed Mar 8, 2016
1 parent 183a34d commit 2b35e48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2016-03-08 H.J. Lu <hongjiu.lu@intel.com>

[BZ #19759]
* sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.

2016-03-08 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>

* sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
Expand Down
3 changes: 3 additions & 0 deletions sysdeps/x86/bits/string.h
Expand Up @@ -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__ \
Expand Down

0 comments on commit 2b35e48

Please sign in to comment.