Home
last modified time | relevance | path

Searched refs:c_op (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/include/asm-generic/
Datomic.h40 #define ATOMIC_OP(op, c_op) \ argument
46 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
50 #define ATOMIC_OP_RETURN(op, c_op) \ argument
56 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
59 return c c_op i; \
62 #define ATOMIC_FETCH_OP(op, c_op) \ argument
68 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
78 #define ATOMIC_OP(op, c_op) \ argument
84 v->counter = v->counter c_op i; \
88 #define ATOMIC_OP_RETURN(op, c_op) \ argument
[all …]
/linux-4.19.296/lib/
Datomic64.c73 #define ATOMIC64_OP(op, c_op) \ argument
80 v->counter c_op a; \
85 #define ATOMIC64_OP_RETURN(op, c_op) \ argument
93 val = (v->counter c_op a); \
99 #define ATOMIC64_FETCH_OP(op, c_op) \ argument
108 v->counter c_op a; \
114 #define ATOMIC64_OPS(op, c_op) \ argument
115 ATOMIC64_OP(op, c_op) \
116 ATOMIC64_OP_RETURN(op, c_op) \
117 ATOMIC64_FETCH_OP(op, c_op)
[all …]
Datomic64_test.c24 #define TEST(bit, op, c_op, val) \ argument
29 r c_op val; \
48 #define TEST_RETURN(bit, op, c_op, val) \ argument
52 r c_op val; \
57 #define TEST_FETCH(bit, op, c_op, val) \ argument
61 r c_op val; \
66 #define RETURN_FAMILY_TEST(bit, op, c_op, val) \ argument
68 FAMILY_TEST(TEST_RETURN, bit, op, c_op, val); \
71 #define FETCH_FAMILY_TEST(bit, op, c_op, val) \ argument
73 FAMILY_TEST(TEST_FETCH, bit, op, c_op, val); \