From af96be34825586536ebcfbf5c675e795ddd3c8fa Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Fri, 27 Feb 2015 14:44:41 +0000 Subject: Rather than using a C implementation of memmove, directly call memmove, which typically has a much faster optimized implementation. --- string/bcopy.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'string') diff --git a/string/bcopy.c b/string/bcopy.c index 326478a995..f74e589449 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); +} -- cgit v1.2.3