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:
@ -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.
|
||||||
|
@ -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>
|
|
||||||
|
Reference in New Issue
Block a user