From 05a910f7b420c2b831f35ba90e61c80f001c0606 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Wed, 5 Aug 2015 15:58:15 +0100 Subject: Improve performance of mempcpy by inlining and using memcpy. Enable this for all targets except sparc which has an optimized mempcpy implementation. --- sysdeps/sparc/bits/string.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdeps') 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 -- cgit 1.4.1