diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-20 01:34:52 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-20 01:34:52 +0000 |
commit | bd7510cc6b7ea453c1bc1c12949174f6324a6bdc (patch) | |
tree | 60cc6c9ef264264b208b3b70a7a2f54fc986fde4 /libc/string/i386/memcpy.c | |
parent | a0da3cfbbff226c7792be30e2bb277386e7cd086 (diff) |
string/i386/strncpy: faster i386 version (same code size), testing code
string/i386/*: formatiing and commentary tidying up
Diffstat (limited to 'libc/string/i386/memcpy.c')
-rw-r--r-- | libc/string/i386/memcpy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/string/i386/memcpy.c b/libc/string/i386/memcpy.c index af86cf255..697d0bdc2 100644 --- a/libc/string/i386/memcpy.c +++ b/libc/string/i386/memcpy.c @@ -38,11 +38,11 @@ void *memcpy(void * to, const void * from, size_t n) int d0, d1, d2; __asm__ __volatile__( " rep; movsl\n" - " movl %4,%%ecx\n" - " andl $3,%%ecx\n" + " movl %4, %%ecx\n" + " andl $3, %%ecx\n" /* jz is optional. avoids "rep; movsb" with ecx == 0, * but adds a branch, which is currently (2008) faster */ - " jz 1f\n" + " jz 1f\n" " rep; movsb\n" "1:\n" : "=&c" (d0), "=&D" (d1), "=&S" (d2) |