Browse Source

arm memcpy: fix the case when src=dst

Denis Vlasenko 17 years ago
parent
commit
267b2d15fd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      libc/string/arm/_memcpy.S

+ 1 - 2
libc/string/arm/_memcpy.S

@@ -108,8 +108,7 @@ _memcpy:
 	cmp	r1, r0
 	cmp	r1, r0
 	bcc	.Lmemcpy_backwards
 	bcc	.Lmemcpy_backwards
 
 
-	IT(tt, eq)
+	IT(tt, eq)			/* Quick abort for src=dst */
-	moveq	r0, #0			/* Quick abort for len=0 */
 #if defined(__USE_BX__)
 #if defined(__USE_BX__)
         bxeq    lr
         bxeq    lr
 #else
 #else