linux/scripts/atomic/fallbacks/sub_and_test

cat <<EOF
	return raw_${atomic}_sub_return(i, v) == 0;
EOF