summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/x86_64/__testandset.S
blob: 7355477e60a9f6caaa8b9b281a642fc1d21459ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "dietwarning.h"

.text
.global __testandset
.type	__testandset,@function
__testandset:
	xorl	%eax,%eax
	incl	%eax
	xchg	%rax,(%rdi)
	ret

link_warning("__testandset", "warning: __testandset() was never tested!")