Re: [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-12 Thread Mathieu Desnoyers
* Andi Kleen ([EMAIL PROTECTED]) wrote: > Mathieu Desnoyers <[EMAIL PROTECTED]> writes: > > > > /** > > @@ -402,7 +405,7 @@ static __inline__ long atomic64_sub_return(long i, > > atomic64_t *v) > > */ > > #define atomic_add_unless(v, a, u) \ > > ({

Re: [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-12 Thread Andi Kleen
Mathieu Desnoyers <[EMAIL PROTECTED]> writes: > > /** > @@ -402,7 +405,7 @@ static __inline__ long atomic64_sub_return(long i, > atomic64_t *v) > */ > #define atomic_add_unless(v, a, u) \ > ({ \ > - int

Re: [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-12 Thread Andi Kleen
Mathieu Desnoyers [EMAIL PROTECTED] writes: /** @@ -402,7 +405,7 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t *v) */ #define atomic_add_unless(v, a, u) \ ({ \ - int c, old;

Re: [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-12 Thread Mathieu Desnoyers
* Andi Kleen ([EMAIL PROTECTED]) wrote: Mathieu Desnoyers [EMAIL PROTECTED] writes: /** @@ -402,7 +405,7 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t *v) */ #define atomic_add_unless(v, a, u) \ ({

[PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64 Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> --- a/include/asm-x86_64/atomic.h +++ b/include/asm-x86_64/atomic.h @@ -375,8 +375,8 @@ static __inline__ long atomic64_add_return(long i, atomic64_t *v) long __i = i;

[PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64

2007-02-11 Thread Mathieu Desnoyers
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64 Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] --- a/include/asm-x86_64/atomic.h +++ b/include/asm-x86_64/atomic.h @@ -375,8 +375,8 @@ static __inline__ long atomic64_add_return(long i, atomic64_t *v) long __i = i;