46
50
#define CAIRO_HAS_ATOMIC_OPS 1
50
52
typedef int cairo_atomic_int_t;
52
54
# define _cairo_atomic_int_inc(x) ((void) __sync_fetch_and_add(x, 1))
53
55
# define _cairo_atomic_int_dec_and_test(x) (__sync_fetch_and_add(x, -1) == 1)
54
56
# define _cairo_atomic_int_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (x, oldv, newv)
62
63
typedef int cairo_atomic_int_t;