Explorar o código

arm memcpy: fix the case when src=dst

Denis Vlasenko %!s(int64=17) %!d(string=hai) anos
pai
achega
267b2d15fd
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      libc/string/arm/_memcpy.S

+ 1 - 2
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