diff options
author | Richard Braun <rbraun@sceen.net> | 2018-04-14 22:03:50 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-04-14 22:08:47 +0200 |
commit | d4a39d61e853f570ec8d599e9500a80b035fb61f (patch) | |
tree | 5a5d7720c9e4d93a5f63beec9d7a0cedd1dcd62d /kern/atomic.h | |
parent | 4033816a7ce4a24230f462b5c22183c1b45e24df (diff) |
Rename variables in function-like macros
Diffstat (limited to 'kern/atomic.h')
-rw-r--r-- | kern/atomic.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kern/atomic.h b/kern/atomic.h index e106dac8..6b4ebf38 100644 --- a/kern/atomic.h +++ b/kern/atomic.h @@ -89,15 +89,15 @@ * value, some compilers seem to have trouble when all parameters don't * have the same type. */ -#define atomic_cas(ptr, oval, nval, mo) \ -MACRO_BEGIN \ - typeof(*(ptr)) oval___, nval___; \ - \ - oval___ = (oval); \ - nval___ = (nval); \ - __atomic_compare_exchange_n(ptr, &oval___, nval___, false, \ - mo, ATOMIC_RELAXED); \ - oval___; \ +#define atomic_cas(ptr, oval, nval, mo) \ +MACRO_BEGIN \ + typeof(*(ptr)) oval_, nval_; \ + \ + oval_ = (oval); \ + nval_ = (nval); \ + __atomic_compare_exchange_n(ptr, &oval_, nval_, false, \ + mo, ATOMIC_RELAXED); \ + oval_; \ MACRO_END /* |