1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-05 19:35:52 +03:00

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.
This commit is contained in:
H.J. Lu
2009-07-02 03:39:03 -07:00
committed by Ulrich Drepper
parent 6cbbaa50aa
commit ab6a873fe0
10 changed files with 1982 additions and 12 deletions

View File

@@ -21,11 +21,12 @@
#undef strncpy
#ifndef STRNCPY
#define STRNCPY strncpy
#endif
char *
strncpy (s1, s2, n)
char *s1;
const char *s2;
size_t n;
STRNCPY (char *s1, const char *s2, size_t n)
{
reg_char c;
char *s = s1;