aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-06-30 08:26:11 -0700
committerUlrich Drepper <drepper@redhat.com>2010-06-30 08:26:11 -0700
commit6fb8cbcb58a29fff73eb2101b34caa19a7f88eba (patch)
tree3a39ddec3a6cf66f8541c6591dbe4017136580f0 /debug
parentd85f8ff66711fd3b1c5753330499c7403fa46d81 (diff)
downloadglibc-6fb8cbcb58a29fff73eb2101b34caa19a7f88eba.zip
glibc-6fb8cbcb58a29fff73eb2101b34caa19a7f88eba.tar.gz
glibc-6fb8cbcb58a29fff73eb2101b34caa19a7f88eba.tar.bz2
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.
Diffstat (limited to 'debug')
-rw-r--r--debug/memmove_chk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug/memmove_chk.c b/debug/memmove_chk.c
index f3b74d2..6a3e157 100644
--- a/debug/memmove_chk.c
+++ b/debug/memmove_chk.c
@@ -23,8 +23,12 @@
#include <memcopy.h>
#include <pagecopy.h>
+#ifndef MEMMOVE_CHK
+# define MEMMOVE_CHK __memmove_chk
+#endif
+
void *
-__memmove_chk (dest, src, len, destlen)
+MEMMOVE_CHK (dest, src, len, destlen)
void *dest;
const void *src;
size_t len;