mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Very minor optimization
It only effect happens at common misaligned memory check and fixup Does the exact same end result, just in less 2 instructions and independent of r4 and r5, using r12 instead
This commit is contained in:
parent
ce71e56a52
commit
6a95643edb
@ -26,17 +26,15 @@ memcpy:
|
|||||||
orr r12, r0, r1
|
orr r12, r0, r1
|
||||||
ands r12, r12, #3
|
ands r12, r12, #3
|
||||||
beq .L1
|
beq .L1
|
||||||
and r4, r0, #3
|
mov r12, r0, LSL#30
|
||||||
and r5, r1, #3
|
cmp r12, r1, LSL#30
|
||||||
cmp r4, r5
|
|
||||||
bne .L6
|
bne .L6
|
||||||
rsb r4, r4, #4
|
|
||||||
.L0:
|
.L0:
|
||||||
ldrb r3, [r1], #1
|
ldrb r3, [r1], #1
|
||||||
strb r3, [r0], #1
|
strb r3, [r0], #1
|
||||||
subs r2, r2, #1
|
subs r2, r2, #1
|
||||||
popeq {r0,r4-r9,pc}
|
popeq {r0,r4-r9,pc}
|
||||||
subs r4, r4, #1
|
adds r12, r12, #0x40000000
|
||||||
bne .L0
|
bne .L0
|
||||||
.L1:
|
.L1:
|
||||||
@ check if length higher than 32
|
@ check if length higher than 32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user