summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/inc_and_test
blob: de25aebee715daf1618cdd829dee4f2cfd3d4afd (plain)
1
2
3
4
5
6
7
cat <<EOF
static __always_inline bool
raw_${atomic}_inc_and_test(${atomic}_t *v)
{
	return raw_${atomic}_inc_return(v) == 0;
}
EOF