1 2 3 4 5 6 7
cat <<EOF static __always_inline ${int} raw_${atomic}_xchg${order}(${atomic}_t *v, ${int} new) { return raw_xchg${order}(&v->counter, new); } EOF