Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: fusl/src/string/x86_64/memcpy.s

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/string/wmemset.c ('k') | fusl/src/string/x86_64/memmove.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 .global memcpy
2 .global __memcpy_fwd
3 .hidden __memcpy_fwd
4 .type memcpy,@function
5 memcpy:
6 __memcpy_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
OLDNEW
« no previous file with comments | « fusl/src/string/wmemset.c ('k') | fusl/src/string/x86_64/memmove.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698