Go to the documentation of this file.
12 #ifndef _ASM_GENERIC_ATOMIC64_H
13 #define _ASM_GENERIC_ATOMIC64_H
19 #define ATOMIC64_INIT(i) { (i) }
32 #define atomic64_add_negative(a, v) (atomic64_add_return((a), (v)) < 0)
33 #define atomic64_inc(v) atomic64_add(1LL, (v))
34 #define atomic64_inc_return(v) atomic64_add_return(1LL, (v))
35 #define atomic64_inc_and_test(v) (atomic64_inc_return(v) == 0)
36 #define atomic64_sub_and_test(a, v) (atomic64_sub_return((a), (v)) == 0)
37 #define atomic64_dec(v) atomic64_sub(1LL, (v))
38 #define atomic64_dec_return(v) atomic64_sub_return(1LL, (v))
39 #define atomic64_dec_and_test(v) (atomic64_dec_return((v)) == 0)
40 #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1LL, 0LL)