This commit is contained in:
2025-12-04 00:45:42 -06:00
parent 4ca5884255
commit 28d44f2bbf
13 changed files with 851 additions and 31 deletions

25
musl/memcpy.s Normal file
View File

@@ -0,0 +1,25 @@
.global memcpy
.global __memcpy_fwd
.hidden __memcpy_fwd
.type memcpy,@function
memcpy:
__memcpy_fwd:
mov %rdi,%rax
cmp $8,%rdx
jc 1f
test $7,%edi
jz 1f
2: movsb
dec %rdx
test $7,%edi
jnz 2b
1: mov %rdx,%rcx
shr $3,%rcx
rep
movsq
and $7,%edx
jz 1f
2: movsb
dec %edx
jnz 2b
1: ret