summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-23 20:31:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-23 20:31:51 +0000
commit267b2d15fd7b4d568e447734aee337ae24fae982 (patch)
treef8eb22b0a6815c9a91f85351f08b3a8bc1c860e1 /libc
parentb7a34690482d70c1b46a8fb166e3c575a00f5b68 (diff)
arm memcpy: fix the case when src=dst
Diffstat (limited to 'libc')
-rw-r--r--libc/string/arm/_memcpy.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/string/arm/_memcpy.S b/libc/string/arm/_memcpy.S
index 5ef63c45a..103580a0c 100644
--- a/libc/string/arm/_memcpy.S
+++ b/libc/string/arm/_memcpy.S
@@ -108,8 +108,7 @@ _memcpy:
cmp r1, r0
bcc .Lmemcpy_backwards
- IT(tt, eq)
- moveq r0, #0 /* Quick abort for len=0 */
+ IT(tt, eq) /* Quick abort for src=dst */
#if defined(__USE_BX__)
bxeq lr
#else