2 static inline int a_cas(volatile int *p, int t, int s)
14 : "=&r"(old), "=&r"(tmp)
15 : "r"(p), "r"(t), "r"(s)
21 static inline int a_swap(volatile int *x, int v)
23 register int old, tmp;
24 __asm__ __volatile__ (
31 : "=&r"(old), "=&r"(tmp)
37 #define a_fetch_add a_fetch_add
38 static inline int a_fetch_add(volatile int *x, int v)
40 register int new, tmp;
41 __asm__ __volatile__ (
49 : "=&r"(new), "=&r"(tmp)