summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/add_unless
blob: 88593e28b1637bbde904b67493a2c2a314cdf270 (plain)
1
2
3
4
5
6
7
cat << EOF
static __always_inline bool
raw_${atomic}_add_unless(${atomic}_t *v, ${int} a, ${int} u)
{
	return raw_${atomic}_fetch_add_unless(v, a, u) != u;
}
EOF