mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08: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
195 B
C
9 lines
195 B
C
#define STPNCPY __stpncpy_sse2
|
|
#ifdef SHARED
|
|
#undef libc_hidden_def
|
|
#define libc_hidden_def(name) \
|
|
__hidden_ver1 (__stpncpy_sse2, __GI___stpncpy, __stpncpy_sse2);
|
|
#endif
|
|
|
|
#include "stpncpy.c"
|