Commit 330c137c authored by Pavel Emelyanov's avatar Pavel Emelyanov

arm: Add atomic_add

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e99576f6
......@@ -68,6 +68,8 @@ static inline unsigned int atomic_sub_return(int i, atomic_t *v)
static inline unsigned int atomic_inc(atomic_t *v) { return atomic_add_return(1, v) - 1; }
static inline unsigned int atomic_add(atomic_t *v, unsigned int val) { return atomic_add_return(val, v) - val; }
static inline unsigned int atomic_dec(atomic_t *v) { return atomic_sub_return(1, v) + 1; }
/* true if the result is 0, or false for all other cases. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment