projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix stupid bug in updating of O_ACCMODE for O_SEARCH support
[musl]
/
src
/
string
/
i386
/
memcpy.s
1
.global memcpy
2
.type memcpy,@function
3
memcpy:
4
push %esi
5
push %edi
6
mov 12(%esp),%edi
7
mov 16(%esp),%esi
8
mov 20(%esp),%ecx
9
mov %edi,%eax
10
cmp $4,%ecx
11
jc 1f
12
test $3,%edi
13
jz 1f
14
2: movsb
15
dec %ecx
16
test $3,%edi
17
jnz 2b
18
1: mov %ecx,%edx
19
shr $2,%ecx
20
rep
21
movsl
22
and $3,%edx
23
jz 1f
24
2: movsb
25
dec %edx
26
jnz 2b
27
1: pop %edi
28
pop %esi
29
ret