Sign in
cobalt
/
cobalt
/
3cd5432aaed8f14f27f66ade1b51aa71df939492
/
.
/
third_party
/
musl
/
src
/
string
/
x86_64
/
memmove.s
blob: 172c025206a3e81e9db34a38581e34a4ac02a4f8 [
file
] [
log
] [
blame
]
.global memmove
.type memmove
,@
function
memmove
:
mov
%rdi,%
rax
sub
%rsi,%
rax
cmp
%rdx,%
rax
.hidden __memcpy_fwd
jae __memcpy_fwd
mov
%rdx,%
rcx
lea
-1
(%rdi,%
rdx
),
%rdi
lea
-1
(%rsi,%
rdx
),
%rsi
std
rep movsb
cld
lea
1
(%rdi),%
rax
ret