Lines Matching refs:ptr
15 #define cmpxchg(ptr, o, n) \
17 __typeof__(*(ptr)) __o = (o); \
18 __typeof__(*(ptr)) __n = (n); \
19 (__typeof__(*(ptr))) __sync_val_compare_and_swap((ptr),__o,__n);\
26 #define xchg(ptr, x) \
28 __typeof__(ptr) __ptr = (ptr); \
29 __typeof__(*(ptr)) __old; \
44 " cdsg %[old],%[new],%[ptr]\n" \
49 [ptr] "Q" (*(p1)), "Q" (*(p2)) \