repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 3.35.
[syslinux-debian/hramrach.git]
/
memdisk
/
memset.S
blob
c6638854334e62c1e30d8c132ef101868d16019a
1
#
2
# memset.S
3
#
4
# Simple memset() implementation
5
#
6
7
.text
8
.globl memset
9
.type memset, @function
10
memset:
11
cld
12
pushl %edi
13
pushl %esi
14
movl 12(%esp),%edi
15
movzbl 16(%esp),%eax
16
movl 20(%esp),%esi
17
imull $0x01010101,%eax
18
movl %esi,%ecx
19
shrl $2,%ecx
20
rep ; stosl
21
movl %esi,%ecx
22
andl $3,%ecx
23
rep ; stosb
24
movl 12(%esp),%eax
25
popl %esi
26
popl %edi
27
ret
28
29
.size memcpy,.-memcpy