diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2015-02-27 14:44:41 +0000 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2015-02-27 14:44:41 +0000 |
commit | af96be34825586536ebcfbf5c675e795ddd3c8fa (patch) | |
tree | adba8ec7e3a3a54821aeeea0f8616637ce2f4b09 /string | |
parent | ddcf6798d35beca3c4eec80ea448b57fd45558f4 (diff) | |
download | glibc-af96be34825586536ebcfbf5c675e795ddd3c8fa.tar.gz glibc-af96be34825586536ebcfbf5c675e795ddd3c8fa.tar.xz glibc-af96be34825586536ebcfbf5c675e795ddd3c8fa.zip |
Rather than using a C implementation of memmove, directly call memmove, which
typically has a much faster optimized implementation.
Diffstat (limited to 'string')
-rw-r--r-- | string/bcopy.c | 14 |
1 files changed, 5 insertions, 9 deletions
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 <string.h> -#define memmove bcopy -#define rettype void -#define RETURN(s) return -#define a1 src -#define a1const const -#define a2 dest -#define a2const - -#include <string/memmove.c> +void +bcopy (const void *src, void *dest, size_t len) +{ + memmove (dest, src, len); +} |