aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2015-08-05 15:58:15 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2015-08-05 16:24:04 +0100
commit05a910f7b420c2b831f35ba90e61c80f001c0606 (patch)
treeea10fa59974d0e2e3b5f43d490aca37bc2b787ad /sysdeps
parentf29ac72effae859140bb0d7fffdb1e6cef0ffed0 (diff)
downloadglibc-05a910f7b420c2b831f35ba90e61c80f001c0606.tar
glibc-05a910f7b420c2b831f35ba90e61c80f001c0606.tar.gz
glibc-05a910f7b420c2b831f35ba90e61c80f001c0606.tar.bz2
glibc-05a910f7b420c2b831f35ba90e61c80f001c0606.zip
Improve performance of mempcpy by inlining and using memcpy. Enable
this for all targets except sparc which has an optimized mempcpy implementation.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/sparc/bits/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/sparc/bits/string.h b/sysdeps/sparc/bits/string.h
index 36fbb4c847..4eb94473fb 100644
--- a/sysdeps/sparc/bits/string.h
+++ b/sysdeps/sparc/bits/string.h
@@ -26,3 +26,6 @@
/* sparc32 and sparc64 strchr(x, '\0') perform better than
__rawmemchr(x, '\0'). */
#define _HAVE_STRING_ARCH_strchr 1
+
+/* Don't inline mempcpy into memcpy as sparc has an optimized mempcpy. */
+#define _HAVE_STRING_ARCH_mempcpy 1