From 6fb8cbcb58a29fff73eb2101b34caa19a7f88eba Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 30 Jun 2010 08:26:11 -0700 Subject: Improve 64bit memcpy/memmove for Atom, Core 2 and Core i7 This patch includes optimized 64bit memcpy/memmove for Atom, Core 2 and Core i7. It improves memcpy by up to 3X on Atom, up to 4X on Core 2 and up to 1X on Core i7. It also improves memmove by up to 3X on Atom, up to 4X on Core 2 and up to 2X on Core i7. --- string/memmove.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'string') diff --git a/string/memmove.c b/string/memmove.c index 16671f7..8e36e7c 100644 --- a/string/memmove.c +++ b/string/memmove.c @@ -37,9 +37,12 @@ #define rettype void * #endif +#ifndef MEMMOVE +#define MEMMOVE memmove +#endif rettype -memmove (a1, a2, len) +MEMMOVE (a1, a2, len) a1const void *a1; a2const void *a2; size_t len; -- cgit v1.1