From: Wilco Dijkstra Date: Fri, 27 Feb 2015 14:44:41 +0000 (+0000) Subject: Rather than using a C implementation of memmove, directly call memmove, which X-Git-Tag: upstream/2.30~6279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af96be34825586536ebcfbf5c675e795ddd3c8fa;p=external%2Fglibc.git Rather than using a C implementation of memmove, directly call memmove, which typically has a much faster optimized implementation. --- diff --git a/ChangeLog b/ChangeLog index 6eb5290..b55d6d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2015-02-27 Wilco Dijkstra wdijkstr@arm.com + * string/bcopy.c (bcopy): Call memmove for performance. + +2015-02-27 Wilco Dijkstra wdijkstr@arm.com + * string/bzero.c (__bzero): Call memset for performance. 2015-02-27 John David Anglin diff --git a/string/bcopy.c b/string/bcopy.c index 326478a..f74e589 100644 --- a/string/bcopy.c +++ b/string/bcopy.c @@ -17,12 +17,8 @@ #include -#define memmove bcopy -#define rettype void -#define RETURN(s) return -#define a1 src -#define a1const const -#define a2 dest -#define a2const - -#include +void +bcopy (const void *src, void *dest, size_t len) +{ + memmove (dest, src, len); +}