19 #ifndef AVUTIL_ATOMIC_SUNCC_H
20 #define AVUTIL_ATOMIC_SUNCC_H
27 #define avpriv_atomic_int_get atomic_int_get_suncc
30 __machine_rw_barrier();
34 #define avpriv_atomic_int_set atomic_int_set_suncc
38 __machine_rw_barrier();
41 #define avpriv_atomic_int_add_and_fetch atomic_int_add_and_fetch_suncc
44 return atomic_add_int_nv(ptr, inc);
47 #define avpriv_atomic_ptr_cas atomic_ptr_cas_suncc
49 void *oldval,
void *newval)
51 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)