diff options
Diffstat (limited to 'scripts/atomic/fallbacks/xchg')
-rw-r--r-- | scripts/atomic/fallbacks/xchg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/xchg b/scripts/atomic/fallbacks/xchg new file mode 100644 index 000000000000..733b8980b2f3 --- /dev/null +++ b/scripts/atomic/fallbacks/xchg @@ -0,0 +1,7 @@ +cat <<EOF +static __always_inline ${int} +arch_${atomic}_xchg${order}(${atomic}_t *v, ${int} new) +{ + return arch_xchg${order}(&v->counter, new); +} +EOF |