From ab6a873fe07b8ded403bc5a5ca73be5d04820d61 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 2 Jul 2009 03:39:03 -0700 Subject: 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. --- sysdeps/x86_64/multiarch/stpncpy.S | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sysdeps/x86_64/multiarch/stpncpy.S (limited to 'sysdeps/x86_64/multiarch/stpncpy.S') diff --git a/sysdeps/x86_64/multiarch/stpncpy.S b/sysdeps/x86_64/multiarch/stpncpy.S new file mode 100644 index 0000000000..ff89a89491 --- /dev/null +++ b/sysdeps/x86_64/multiarch/stpncpy.S @@ -0,0 +1,6 @@ +#define STRCPY __stpncpy +#define USE_AS_STPCPY +#define USE_AS_STRNCPY +#include "strcpy.S" + +weak_alias (__stpncpy, stpncpy) -- cgit v1.2.3-70-g09d2