mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 04:03:35 +08:00
(__strncat_g): Improve last patch.
This commit is contained in:
parent
9b359dd0eb
commit
ca5d7882cf
@ -1050,7 +1050,7 @@ __strncat_g (char *__dest, __const char __src[], size_t __n)
|
|||||||
#ifdef __i686__
|
#ifdef __i686__
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__
|
||||||
("repne; scasb\n"
|
("repne; scasb\n"
|
||||||
"movl %%edx, %3\n\t"
|
"movl %4, %3\n\t"
|
||||||
"decl %1\n\t"
|
"decl %1\n\t"
|
||||||
"1:\n\t"
|
"1:\n\t"
|
||||||
"decl %3\n\t"
|
"decl %3\n\t"
|
||||||
@ -1063,7 +1063,7 @@ __strncat_g (char *__dest, __const char __src[], size_t __n)
|
|||||||
"2:\n\t"
|
"2:\n\t"
|
||||||
"movb $0,(%1)"
|
"movb $0,(%1)"
|
||||||
: "=&a" (__dummy), "=&D" (__tmp), "=&S" (__src), "=&c" (__n)
|
: "=&a" (__dummy), "=&D" (__tmp), "=&S" (__src), "=&c" (__n)
|
||||||
: "0" (0), "1" (__tmp), "2" (__src), "3" (0xffffffff), "d" (__n)
|
: "g" (__n), "0" (0), "1" (__tmp), "2" (__src), "3" (0xffffffff)
|
||||||
: "memory", "cc");
|
: "memory", "cc");
|
||||||
#else
|
#else
|
||||||
--__tmp;
|
--__tmp;
|
||||||
|
Loading…
Reference in New Issue
Block a user