glibc/sysdeps/x86_64/multiarch/memmove_chk.c
H.J. Lu 6fb8cbcb58 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.
2010-06-30 08:26:11 -07:00

16 lines
485 B
C

#include "init-arch.h"
#define MEMMOVE_CHK __memmove_chk_sse2
#include "debug/memmove_chk.c"
extern __typeof (__memmove_chk_sse2) __memmove_chk_sse2 attribute_hidden;
extern __typeof (__memmove_chk_sse2) __memmove_chk_ssse3 attribute_hidden;
extern __typeof (__memmove_chk_sse2) __memmove_chk_ssse3_back attribute_hidden;
libc_ifunc (__memmove_chk,
HAS_SSSE3
? (HAS_FAST_COPY_BACKWARD
? __memmove_chk_ssse3_back : __memmove_chk_ssse3)
: __memmove_chk_sse2);