summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/sub_and_test
blob: da8a049c9b02b5151320a816603b2b83988d572f (plain)
1
2
3
4
5
6
7
cat <<EOF
static __always_inline bool
arch_${atomic}_sub_and_test(${int} i, ${atomic}_t *v)
{
	return arch_${atomic}_sub_return(i, v) == 0;
}
EOF