summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/xchg
blob: bdd788aa575ff2b5aad26229e9883d3ea7f935ac (plain)
1
2
3
4
5
6
7
cat <<EOF
static __always_inline ${int}
raw_${atomic}_xchg${order}(${atomic}_t *v, ${int} new)
{
	return raw_xchg${order}(&v->counter, new);
}
EOF