glibc/sysdeps/x86_64/multiarch/strncpy-c.c
H.J. Lu ab6a873fe0 SSSE3 strcpy/stpcpy for x86-64
This patch adds SSSE3 strcpy/stpcpy. I got up to 4X speed up on Core 2
and Core i7.  I disabled it on Atom since SSSE3 version is slower for
shorter (<64byte) data.
2009-07-02 03:39:03 -07:00

9 lines
209 B
C

#define STRNCPY __strncpy_sse2
#ifdef SHARED
#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(name) \
__hidden_ver1 (__strncpy_sse2, __GI_strncpy, __strncpy_sse2);
#endif
#include "strncpy.c"