diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-07-02 03:39:03 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-07-02 03:39:03 -0700 |
commit | ab6a873fe07b8ded403bc5a5ca73be5d04820d61 (patch) | |
tree | 82c30accc8655738ef1831579a1d3c1e93270cf2 /sysdeps/x86_64/multiarch/strncpy-c.c | |
parent | 6cbbaa50aac809ad6e0692247876c82d58e466bf (diff) | |
download | glibc-ab6a873fe07b8ded403bc5a5ca73be5d04820d61.tar.gz glibc-ab6a873fe07b8ded403bc5a5ca73be5d04820d61.tar.xz glibc-ab6a873fe07b8ded403bc5a5ca73be5d04820d61.zip |
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.
Diffstat (limited to 'sysdeps/x86_64/multiarch/strncpy-c.c')
-rw-r--r-- | sysdeps/x86_64/multiarch/strncpy-c.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/strncpy-c.c b/sysdeps/x86_64/multiarch/strncpy-c.c new file mode 100644 index 0000000000..296c32cb5d --- /dev/null +++ b/sysdeps/x86_64/multiarch/strncpy-c.c @@ -0,0 +1,8 @@ +#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" |