aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/arm/string/memcpy_arm.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arm/string/memcpy_arm.S')
-rw-r--r--lib/libc/arm/string/memcpy_arm.S66
1 files changed, 0 insertions, 66 deletions
diff --git a/lib/libc/arm/string/memcpy_arm.S b/lib/libc/arm/string/memcpy_arm.S
index 57b0449e5099..050ea8fb315f 100644
--- a/lib/libc/arm/string/memcpy_arm.S
+++ b/lib/libc/arm/string/memcpy_arm.S
@@ -170,21 +170,8 @@ ENTRY(memcpy)
stmdb sp!, {r4, r5}
.Lmemcpy_srcul1loop16:
-#ifdef __ARMEB__
- mov r3, lr, lsl #8
-#else
mov r3, lr, lsr #8
-#endif
ldmia r1!, {r4, r5, r12, lr}
-#ifdef __ARMEB__
- orr r3, r3, r4, lsr #24
- mov r4, r4, lsl #8
- orr r4, r4, r5, lsr #24
- mov r5, r5, lsl #8
- orr r5, r5, r12, lsr #24
- mov r12, r12, lsl #8
- orr r12, r12, lr, lsr #24
-#else
orr r3, r3, r4, lsl #24
mov r4, r4, lsr #8
orr r4, r4, r5, lsl #24
@@ -192,7 +179,6 @@ ENTRY(memcpy)
orr r5, r5, r12, lsl #24
mov r12, r12, lsr #8
orr r12, r12, lr, lsl #24
-#endif
stmia r0!, {r3-r5, r12}
subs r2, r2, #0x10
bge .Lmemcpy_srcul1loop16
@@ -201,17 +187,9 @@ ENTRY(memcpy)
blt .Lmemcpy_srcul1l4
.Lmemcpy_srcul1loop4:
-#ifdef __ARMEB__
- mov r12, lr, lsl #8
-#else
mov r12, lr, lsr #8
-#endif
ldr lr, [r1], #4
-#ifdef __ARMEB__
- orr r12, r12, lr, lsr #24
-#else
orr r12, r12, lr, lsl #24
-#endif
str r12, [r0], #4
subs r2, r2, #4
bge .Lmemcpy_srcul1loop4
@@ -227,21 +205,8 @@ ENTRY(memcpy)
stmdb sp!, {r4, r5}
.Lmemcpy_srcul2loop16:
-#ifdef __ARMEB__
- mov r3, lr, lsl #16
-#else
mov r3, lr, lsr #16
-#endif
ldmia r1!, {r4, r5, r12, lr}
-#ifdef __ARMEB__
- orr r3, r3, r4, lsr #16
- mov r4, r4, lsl #16
- orr r4, r4, r5, lsr #16
- mov r5, r5, lsl #16
- orr r5, r5, r12, lsr #16
- mov r12, r12, lsl #16
- orr r12, r12, lr, lsr #16
-#else
orr r3, r3, r4, lsl #16
mov r4, r4, lsr #16
orr r4, r4, r5, lsl #16
@@ -249,7 +214,6 @@ ENTRY(memcpy)
orr r5, r5, r12, lsl #16
mov r12, r12, lsr #16
orr r12, r12, lr, lsl #16
-#endif
stmia r0!, {r3-r5, r12}
subs r2, r2, #0x10
bge .Lmemcpy_srcul2loop16
@@ -258,17 +222,9 @@ ENTRY(memcpy)
blt .Lmemcpy_srcul2l4
.Lmemcpy_srcul2loop4:
-#ifdef __ARMEB__
- mov r12, lr, lsl #16
-#else
mov r12, lr, lsr #16
-#endif
ldr lr, [r1], #4
-#ifdef __ARMEB__
- orr r12, r12, lr, lsr #16
-#else
orr r12, r12, lr, lsl #16
-#endif
str r12, [r0], #4
subs r2, r2, #4
bge .Lmemcpy_srcul2loop4
@@ -284,21 +240,8 @@ ENTRY(memcpy)
stmdb sp!, {r4, r5}
.Lmemcpy_srcul3loop16:
-#ifdef __ARMEB__
- mov r3, lr, lsl #24
-#else
mov r3, lr, lsr #24
-#endif
ldmia r1!, {r4, r5, r12, lr}
-#ifdef __ARMEB__
- orr r3, r3, r4, lsr #8
- mov r4, r4, lsl #24
- orr r4, r4, r5, lsr #8
- mov r5, r5, lsl #24
- orr r5, r5, r12, lsr #8
- mov r12, r12, lsl #24
- orr r12, r12, lr, lsr #8
-#else
orr r3, r3, r4, lsl #8
mov r4, r4, lsr #24
orr r4, r4, r5, lsl #8
@@ -306,7 +249,6 @@ ENTRY(memcpy)
orr r5, r5, r12, lsl #8
mov r12, r12, lsr #24
orr r12, r12, lr, lsl #8
-#endif
stmia r0!, {r3-r5, r12}
subs r2, r2, #0x10
bge .Lmemcpy_srcul3loop16
@@ -315,17 +257,9 @@ ENTRY(memcpy)
blt .Lmemcpy_srcul3l4
.Lmemcpy_srcul3loop4:
-#ifdef __ARMEB__
- mov r12, lr, lsl #24
-#else
mov r12, lr, lsr #24
-#endif
ldr lr, [r1], #4
-#ifdef __ARMEB__
- orr r12, r12, lr, lsr #8
-#else
orr r12, r12, lr, lsl #8
-#endif
str r12, [r0], #4
subs r2, r2, #4
bge .Lmemcpy_srcul3loop4