Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm/memcpy: optimize register usage #350

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions arch/arm/memcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#define DST r0
#define SRC r1
#define LEN r12
#define LEN r5

.thumb
.syntax unified
Expand All @@ -42,7 +42,7 @@
.globl memcpy
.type memcpy, %function
memcpy:
str DST, [sp, #-8]!
push {r0, r5}
mov LEN, r2
cmp LEN, #64

Expand Down Expand Up @@ -76,7 +76,7 @@ memcpy:
bne 1b

.Lreturn:
ldr r0, [sp], #8
pop {r0, r5}
bx lr


Expand Down
Loading