20 #ifndef AVUTIL_ATOMIC_SUNCC_H
21 #define AVUTIL_ATOMIC_SUNCC_H
28 #define avpriv_atomic_int_get atomic_int_get_suncc
31 __machine_rw_barrier();
35 #define avpriv_atomic_int_set atomic_int_set_suncc
39 __machine_rw_barrier();
42 #define avpriv_atomic_int_add_and_fetch atomic_int_add_and_fetch_suncc
45 return atomic_add_int_nv(ptr, inc);
48 #define avpriv_atomic_ptr_cas atomic_ptr_cas_suncc
50 void *oldval,
void *newval)
52 return atomic_cas_ptr(ptr, oldval, newval);
const char const char void * val
static void * atomic_ptr_cas_suncc(void *volatile *ptr, void *oldval, void *newval)
static int atomic_int_add_and_fetch_suncc(volatile int *ptr, int inc)
static void atomic_int_set_suncc(volatile int *ptr, int val)
static int atomic_int_get_suncc(volatile int *ptr)