diff options
Diffstat (limited to 'scripts/atomic/fallbacks/andnot')
-rwxr-xr-x | scripts/atomic/fallbacks/andnot | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/andnot b/scripts/atomic/fallbacks/andnot index 5a42f54a3595..c415a3d7baed 100755 --- a/scripts/atomic/fallbacks/andnot +++ b/scripts/atomic/fallbacks/andnot @@ -1,3 +1,16 @@ +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) |