mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-27 13:10:29 +00:00
ab6a873fe0
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.
9 lines
209 B
C
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"
|