aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp32/memcpy.S
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/gp32/memcpy.S')
-rw-r--r--backends/platform/gp32/memcpy.S68
1 files changed, 34 insertions, 34 deletions
diff --git a/backends/platform/gp32/memcpy.S b/backends/platform/gp32/memcpy.S
index 1572831179..12853dbfc4 100644
--- a/backends/platform/gp32/memcpy.S
+++ b/backends/platform/gp32/memcpy.S
@@ -119,7 +119,7 @@ Lmemcpy_ft8:
/* We have aligned source and destination */
subs r2, r2, #8
blt Lmemcpy_fl12 /* less than 12 bytes (4 from above) */
-subs r2, r2, #0x14
+subs r2, r2, #0x14
blt Lmemcpy_fl32 /* less than 32 bytes (12 from above) */
stmdb sp!, {r4} /* borrow r4 */
@@ -130,23 +130,23 @@ ldmia r1!, {r3, r4, r12, lr}
stmia r0!, {r3, r4, r12, lr}
ldmia r1!, {r3, r4, r12, lr}
stmia r0!, {r3, r4, r12, lr}
-subs r2, r2, #0x20
+subs r2, r2, #0x20
bge Lmemcpy_floop32
cmn r2, #0x10
ldmgeia r1!, {r3, r4, r12, lr} /* blat a remaining 16 bytes */
stmgeia r0!, {r3, r4, r12, lr}
-subge r2, r2, #0x10
+subge r2, r2, #0x10
ldmia sp!, {r4} /* return r4 */
Lmemcpy_fl32:
-adds r2, r2, #0x14
+adds r2, r2, #0x14
/* blat 12 bytes at a time */
Lmemcpy_floop12:
ldmgeia r1!, {r3, r12, lr}
stmgeia r0!, {r3, r12, lr}
-subges r2, r2, #0x0c
+subges r2, r2, #0x0c
bge Lmemcpy_floop12
Lmemcpy_fl12:
@@ -201,9 +201,9 @@ ldr lr, [r1], #4
cmp r12, #2
bgt Lmemcpy_fsrcul3
beq Lmemcpy_fsrcul2
-cmp r2, #0x0c
+cmp r2, #0x0c
blt Lmemcpy_fsrcul1loop4
-sub r2, r2, #0x0c
+sub r2, r2, #0x0c
stmdb sp!, {r4, r5}
Lmemcpy_fsrcul1loop16:
@@ -217,10 +217,10 @@ orr r5, r5, r12, lsl #24
mov r12, r12, lsr #8
orr r12, r12, lr, lsl #24
stmia r0!, {r3-r5, r12}
-subs r2, r2, #0x10
+subs r2, r2, #0x10
bge Lmemcpy_fsrcul1loop16
ldmia sp!, {r4, r5}
-adds r2, r2, #0x0c
+adds r2, r2, #0x0c
blt Lmemcpy_fsrcul1l4
Lmemcpy_fsrcul1loop4:
@@ -236,9 +236,9 @@ sub r1, r1, #3
b Lmemcpy_fl4
Lmemcpy_fsrcul2:
-cmp r2, #0x0c
+cmp r2, #0x0c
blt Lmemcpy_fsrcul2loop4
-sub r2, r2, #0x0c
+sub r2, r2, #0x0c
stmdb sp!, {r4, r5}
Lmemcpy_fsrcul2loop16:
@@ -252,10 +252,10 @@ orr r5, r5, r12, lsl #16
mov r12, r12, lsr #16
orr r12, r12, lr, lsl #16
stmia r0!, {r3-r5, r12}
-subs r2, r2, #0x10
+subs r2, r2, #0x10
bge Lmemcpy_fsrcul2loop16
ldmia sp!, {r4, r5}
-adds r2, r2, #0x0c
+adds r2, r2, #0x0c
blt Lmemcpy_fsrcul2l4
Lmemcpy_fsrcul2loop4:
@@ -271,9 +271,9 @@ sub r1, r1, #2
b Lmemcpy_fl4
Lmemcpy_fsrcul3:
-cmp r2, #0x0c
+cmp r2, #0x0c
blt Lmemcpy_fsrcul3loop4
-sub r2, r2, #0x0c
+sub r2, r2, #0x0c
stmdb sp!, {r4, r5}
Lmemcpy_fsrcul3loop16:
@@ -287,10 +287,10 @@ orr r5, r5, r12, lsl #8
mov r12, r12, lsr #24
orr r12, r12, lr, lsl #8
stmia r0!, {r3-r5, r12}
-subs r2, r2, #0x10
+subs r2, r2, #0x10
bge Lmemcpy_fsrcul3loop16
ldmia sp!, {r4, r5}
-adds r2, r2, #0x0c
+adds r2, r2, #0x0c
blt Lmemcpy_fsrcul3l4
Lmemcpy_fsrcul3loop4:
@@ -330,18 +330,18 @@ ldmdb r1!, {r3, r4, r12, lr}
stmdb r0!, {r3, r4, r12, lr}
ldmdb r1!, {r3, r4, r12, lr}
stmdb r0!, {r3, r4, r12, lr}
-subs r2, r2, #0x20
+subs r2, r2, #0x20
bge Lmemcpy_bloop32
Lmemcpy_bl32:
-cmn r2, #0x10
+cmn r2, #0x10
ldmgedb r1!, {r3, r4, r12, lr} /* blat a remaining 16 bytes */
stmgedb r0!, {r3, r4, r12, lr}
-subge r2, r2, #0x10
-adds r2, r2, #0x14
+subge r2, r2, #0x10
+adds r2, r2, #0x14
ldmgedb r1!, {r3, r12, lr} /* blat a remaining 12 bytes */
stmgedb r0!, {r3, r12, lr}
-subge r2, r2, #0x0c
+subge r2, r2, #0x0c
ldmia sp!, {r4, lr}
Lmemcpy_bl12:
@@ -393,9 +393,9 @@ ldr r3, [r1, #0]
cmp r12, #2
blt Lmemcpy_bsrcul1
beq Lmemcpy_bsrcul2
-cmp r2, #0x0c
+cmp r2, #0x0c
blt Lmemcpy_bsrcul3loop4
-sub r2, r2, #0x0c
+sub r2, r2, #0x0c
stmdb sp!, {r4, r5, lr}
Lmemcpy_bsrcul3loop16:
@@ -409,10 +409,10 @@ orr r5, r5, r4, lsr #24
mov r4, r4, lsl #8
orr r4, r4, r3, lsr #24
stmdb r0!, {r4, r5, r12, lr}
-subs r2, r2, #0x10
+subs r2, r2, #0x10
bge Lmemcpy_bsrcul3loop16
ldmia sp!, {r4, r5, lr}
-adds r2, r2, #0x0c
+adds r2, r2, #0x0c
blt Lmemcpy_bsrcul3l4
Lmemcpy_bsrcul3loop4:
@@ -428,9 +428,9 @@ add r1, r1, #3
b Lmemcpy_bl4
Lmemcpy_bsrcul2:
-cmp r2, #0x0c
+cmp r2, #0x0c
blt Lmemcpy_bsrcul2loop4
-sub r2, r2, #0x0c
+sub r2, r2, #0x0c
stmdb sp!, {r4, r5, lr}
Lmemcpy_bsrcul2loop16:
@@ -444,10 +444,10 @@ orr r5, r5, r4, lsr #16
mov r4, r4, lsl #16
orr r4, r4, r3, lsr #16
stmdb r0!, {r4, r5, r12, lr}
-subs r2, r2, #0x10
+subs r2, r2, #0x10
bge Lmemcpy_bsrcul2loop16
ldmia sp!, {r4, r5, lr}
-adds r2, r2, #0x0c
+adds r2, r2, #0x0c
blt Lmemcpy_bsrcul2l4
Lmemcpy_bsrcul2loop4:
@@ -463,9 +463,9 @@ add r1, r1, #2
b Lmemcpy_bl4
Lmemcpy_bsrcul1:
-cmp r2, #0x0c
+cmp r2, #0x0c
blt Lmemcpy_bsrcul1loop4
-sub r2, r2, #0x0c
+sub r2, r2, #0x0c
stmdb sp!, {r4, r5, lr}
Lmemcpy_bsrcul1loop32:
@@ -479,10 +479,10 @@ orr r5, r5, r4, lsr #8
mov r4, r4, lsl #24
orr r4, r4, r3, lsr #8
stmdb r0!, {r4, r5, r12, lr}
-subs r2, r2, #0x10
+subs r2, r2, #0x10
bge Lmemcpy_bsrcul1loop32
ldmia sp!, {r4, r5, lr}
-adds r2, r2, #0x0c
+adds r2, r2, #0x0c
blt Lmemcpy_bsrcul1l4
Lmemcpy_bsrcul1loop4: