summaryrefslogtreecommitdiffstats
path: root/scripts/atomic/fallbacks/inc_not_zero
blob: e02206d017f629944d92a0c649ea50fb65369a98 (plain)
1
2
3
4
5
6
7
cat <<EOF
static __always_inline bool
raw_${atomic}_inc_not_zero(${atomic}_t *v)
{
	return raw_${atomic}_add_unless(v, 1, 0);
}
EOF