Commit 51ed88a4 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: define atomic_add_negative

parent 94f68b22
...@@ -67,6 +67,8 @@ static __inline__ int atomic_add_return(int a, atomic_t *v) ...@@ -67,6 +67,8 @@ static __inline__ int atomic_add_return(int a, atomic_t *v)
return t; return t;
} }
#define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
static __inline__ void atomic_sub(int a, atomic_t *v) static __inline__ void atomic_sub(int a, atomic_t *v)
{ {
int t; int t;
......
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