ref: 3e6cf0be9b407c8ad8771ef9b587d9f1e83b661a
parent: 0d61797ee0b0e15e6fb07823ef42c1d5b5a62bb6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Nov 28 18:44:58 EST 2025
libc/arm: return early from memmove() when pointers are equal.
--- a/sys/src/libc/arm/memmove.s
+++ b/sys/src/libc/arm/memmove.s
@@ -17,6 +17,7 @@
CMP R(FROM), R(TS)
BLS _forward
+ BEQ _return /* to == from */
_back:
ADD R(N), R(FROM) /* from end pointer */
--
⑨