(_uatomic_and((addr), \
caa_cast_long_keep_sign(v), \
sizeof(*(addr))))
-#define cmm_smp_mb__before_and() cmm_barrier()
-#define cmm_smp_mb__after_and() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_and() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_and() cmm_barrier()
#endif
(_uatomic_or((addr), \
caa_cast_long_keep_sign(v), \
sizeof(*(addr))))
-#define cmm_smp_mb__before_or() cmm_barrier()
-#define cmm_smp_mb__after_or() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_or() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_or() cmm_barrier()
#endif
(_uatomic_and((addr), \
caa_cast_long_keep_sign(v), \
sizeof(*(addr))))
-#define cmm_smp_mb__before_and() cmm_barrier()
-#define cmm_smp_mb__after_and() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_and() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_and() cmm_barrier()
#endif /* #ifndef uatomic_and */
(_uatomic_or((addr), \
caa_cast_long_keep_sign(v), \
sizeof(*(addr))))
-#define cmm_smp_mb__before_or() cmm_barrier()
-#define cmm_smp_mb__after_or() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_or() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_or() cmm_barrier()
#endif /* #ifndef uatomic_or */
#ifndef uatomic_add
#define uatomic_add(addr, v) (void)uatomic_add_return((addr), (v))
-#define cmm_smp_mb__before_add() cmm_barrier()
-#define cmm_smp_mb__after_add() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_add() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_add() cmm_barrier()
#endif
#define uatomic_sub_return(addr, v) \
uatomic_add_return((addr), -(caa_cast_long_keep_sign(v)))
#define uatomic_sub(addr, v) \
uatomic_add((addr), -(caa_cast_long_keep_sign(v)))
-#define cmm_smp_mb__before_sub() cmm_smp_mb__before_add()
-#define cmm_smp_mb__after_sub() cmm_smp_mb__after_add()
+#define cmm_smp_mb__before_uatomic_sub() cmm_smp_mb__before_uatomic_add()
+#define cmm_smp_mb__after_uatomic_sub() cmm_smp_mb__after_uatomic_add()
#ifndef uatomic_inc
#define uatomic_inc(addr) uatomic_add((addr), 1)
-#define cmm_smp_mb__before_inc() cmm_smp_mb__before_add()
-#define cmm_smp_mb__after_inc() cmm_smp_mb__after_add()
+#define cmm_smp_mb__before_uatomic_inc() cmm_smp_mb__before_uatomic_add()
+#define cmm_smp_mb__after_uatomic_inc() cmm_smp_mb__after_uatomic_add()
#endif
#ifndef uatomic_dec
#define uatomic_dec(addr) uatomic_add((addr), -1)
-#define cmm_smp_mb__before_dec() cmm_smp_mb__before_add()
-#define cmm_smp_mb__after_dec() cmm_smp_mb__after_add()
+#define cmm_smp_mb__before_uatomic_dec() cmm_smp_mb__before_uatomic_add()
+#define cmm_smp_mb__after_uatomic_dec() cmm_smp_mb__after_uatomic_add()
#endif
#ifdef __cplusplus
#define uatomic_and(addr, v) \
UATOMIC_COMPAT(and(addr, v))
-#define cmm_smp_mb__before_and() cmm_barrier()
-#define cmm_smp_mb__after_and() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_and() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_and() cmm_barrier()
#define uatomic_or(addr, v) \
UATOMIC_COMPAT(or(addr, v))
-#define cmm_smp_mb__before_or() cmm_barrier()
-#define cmm_smp_mb__after_or() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_or() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_or() cmm_barrier()
#define uatomic_add_return(addr, v) \
UATOMIC_COMPAT(add_return(addr, v))
#define uatomic_add(addr, v) UATOMIC_COMPAT(add(addr, v))
-#define cmm_smp_mb__before_add() cmm_barrier()
-#define cmm_smp_mb__after_add() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_add() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_add() cmm_barrier()
#define uatomic_inc(addr) UATOMIC_COMPAT(inc(addr))
-#define cmm_smp_mb__before_inc() cmm_barrier()
-#define cmm_smp_mb__after_inc() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_inc() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_inc() cmm_barrier()
#define uatomic_dec(addr) UATOMIC_COMPAT(dec(addr))
-#define cmm_smp_mb__before_dec() cmm_barrier()
-#define cmm_smp_mb__after_dec() cmm_barrier()
+#define cmm_smp_mb__before_uatomic_dec() cmm_barrier()
+#define cmm_smp_mb__after_uatomic_dec() cmm_barrier()
#ifdef __cplusplus
}