build.sh: warn without opts, don't enforce C99
[rofl0r-memcpy-test.git] / musl_1124.s
blobfd7aaa16d30b6ca4673621a9170eae483f23b0a8
1 .global mymemcpy
2 .global __mymemcpy_fwd
3 .hidden __mymemcpy_fwd
4 .type mymemcpy,@function
5 mymemcpy:
6 __mymemcpy_fwd:
7 mov %rdi,%rax
8 cmp $8,%rdx
9 jc 1f
10 test $7,%edi
11 jz 1f
12 2: movsb
13 dec %rdx
14 test $7,%edi
15 jnz 2b
16 1: mov %rdx,%rcx
17 shr $3,%rcx
18 rep
19 movsq
20 and $7,%edx
21 jz 1f
22 2: movsb
23 dec %edx
24 jnz 2b
25 1: ret