Current Path : /usr/src/linux-headers-5.15.0-91/scripts/atomic/fallbacks/ |
Current File : //usr/src/linux-headers-5.15.0-91/scripts/atomic/fallbacks/try_cmpxchg |
cat <<EOF static __always_inline bool arch_${atomic}_try_cmpxchg${order}(${atomic}_t *v, ${int} *old, ${int} new) { ${int} r, o = *old; r = arch_${atomic}_cmpxchg${order}(v, o, new); if (unlikely(r != o)) *old = r; return likely(r == o); } EOF