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