summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/memset.S
blob: 472390b8423ae0ab89129195b2aa5c832d28e1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.text
.align 0
.global memset
.type	 memset,@function
memset:
	pushl %edi
	movl 8(%esp),%edi
	movl 12(%esp),%eax
	movl 16(%esp),%ecx
	cld
	pushl %edi
	rep stosb
	popl %eax
	popl %edi
	ret