1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Rather than using a C implementation of memmove, directly call memmove, which

typically has a much faster optimized implementation.
This commit is contained in:
Wilco Dijkstra
2015-02-27 14:44:41 +00:00
parent ddcf6798d3
commit af96be3482
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2015-02-27 Wilco Dijkstra wdijkstr@arm.com
* string/bcopy.c (bcopy): Call memmove for performance.
2015-02-27 Wilco Dijkstra wdijkstr@arm.com 2015-02-27 Wilco Dijkstra wdijkstr@arm.com
* string/bzero.c (__bzero): Call memset for performance. * string/bzero.c (__bzero): Call memset for performance.

View File

@ -17,12 +17,8 @@
#include <string.h> #include <string.h>
#define memmove bcopy void
#define rettype void bcopy (const void *src, void *dest, size_t len)
#define RETURN(s) return {
#define a1 src memmove (dest, src, len);
#define a1const const }
#define a2 dest
#define a2const
#include <string/memmove.c>