mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 03:10:09 +00:00
6fb8cbcb58
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.
16 lines
485 B
C
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);
|