diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2015-08-05 15:58:15 +0100 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2015-08-05 16:24:04 +0100 |
commit | 05a910f7b420c2b831f35ba90e61c80f001c0606 (patch) | |
tree | ea10fa59974d0e2e3b5f43d490aca37bc2b787ad /sysdeps | |
parent | f29ac72effae859140bb0d7fffdb1e6cef0ffed0 (diff) | |
download | glibc-05a910f7b420c2b831f35ba90e61c80f001c0606.zip glibc-05a910f7b420c2b831f35ba90e61c80f001c0606.tar.gz glibc-05a910f7b420c2b831f35ba90e61c80f001c0606.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/sparc/bits/string.h b/sysdeps/sparc/bits/string.h index 36fbb4c..4eb9447 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 |