summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/andnot
blob: c415a3d7baed2e125b32a9e6b5ce7977d0eb2f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if /bin/sh ${ATOMICDIR}/chkdup.sh arch_${atomic}_${pfx}andnot${sfx}${order} andnot
then
cat <<EOF
/**
 * arch_${atomic}_${pfx}andnot${sfx}${order} - Atomic and-not
 * @i: the quantity to and-not with *@v
 * @v: pointer of type ${atomic}_t
 *
 * Atomically and-not @i with @v using ${docbook_order} ordering,
 * returning ${docbook_oldnew} value.
 */
EOF
fi
cat <<EOF
static __always_inline ${ret}
arch_${atomic}_${pfx}andnot${sfx}${order}(${int} i, ${atomic}_t *v)
{
	${retstmt}arch_${atomic}_${pfx}and${sfx}${order}(~i, v);
}
EOF