Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
aaa9eb5101e3a748218fb9373dd9655b50582da2
/
.
/
src
/
string
/
x86_64
/
memcpy.s
blob: 1282dc3b0573fdffc5f223a6f275f4d13187e080 [
file
] [
log
] [
blame
]
.global memcpy
.type memcpy
,@
function
memcpy
:
mov
%rdi,%
rax
cmp
$
8
,
%rdx
jc
1
f
test
$
7
,
%edi
jz
1
f
2
:
movsb
dec %rdx
test
$
7
,
%edi
jnz
2
b
1
:
mov
%rdx,%
rcx
shr
$
3
,
%rcx
rep
movsq
and
$
7
,
%edx
jz
1
f
2
:
movsb
dec %edx
jnz
2
b
1
:
ret