xref: /third_party/musl/src/string/x86_64/memmove.s
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/string/x86_64/
1570af302Sopenharmony_ci.global memmove
2570af302Sopenharmony_ci.type memmove,@function
3570af302Sopenharmony_cimemmove:
4570af302Sopenharmony_ci	mov %rdi,%rax
5570af302Sopenharmony_ci	sub %rsi,%rax
6570af302Sopenharmony_ci	cmp %rdx,%rax
7570af302Sopenharmony_ci.hidden __memcpy_fwd
8570af302Sopenharmony_ci	jae __memcpy_fwd
9570af302Sopenharmony_ci	mov %rdx,%rcx
10570af302Sopenharmony_ci	lea -1(%rdi,%rdx),%rdi
11570af302Sopenharmony_ci	lea -1(%rsi,%rdx),%rsi
12570af302Sopenharmony_ci	std
13570af302Sopenharmony_ci	rep movsb
14570af302Sopenharmony_ci	cld
15570af302Sopenharmony_ci	lea 1(%rdi),%rax
16570af302Sopenharmony_ci	ret
17

Indexes created Thu Nov 07 10:32:03 CST 2024