aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-03-08 10:57:31 -0800
committerH.J. Lu <hjl.tools@gmail.com>2016-03-08 10:57:41 -0800
commit2b35e48c0c547b3f6f81996ce7ad7d67e24c7329 (patch)
tree12b1f52140c9e9a68d2eba4fd3fe6273ee5f6966 /sysdeps/x86
parent183a34dc4a07cad723cd78e494d16a5ef0b6a63e (diff)
downloadglibc-2b35e48c0c547b3f6f81996ce7ad7d67e24c7329.tar
glibc-2b35e48c0c547b3f6f81996ce7ad7d67e24c7329.tar.gz
glibc-2b35e48c0c547b3f6f81996ce7ad7d67e24c7329.tar.bz2
glibc-2b35e48c0c547b3f6f81996ce7ad7d67e24c7329.zip
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.
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/bits/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86/bits/string.h b/sysdeps/x86/bits/string.h
index e4e019f1fc..8dfce052a6 100644
--- a/sysdeps/x86/bits/string.h
+++ b/sysdeps/x86/bits/string.h
@@ -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__ \