summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/__testandset.S
blob: 29b02d57af5ef528cfd83936c48d58a2ae2cfe66 (plain)
1
2
3
4
5
6
7
8
9
.text
.global __testandset
.type	__testandset,@function
__testandset:
	xorl	%eax, %eax
	movl	0x4(%esp),%edx
	incl	%eax
	xchgl	%eax,(%edx)
	ret