Back to index

glibc  2.9
Defines | Typedefs
atomic.h File Reference
#include <stdint.h>

Go to the source code of this file.

Defines

#define atomic_compare_and_exchange_val_acq(mem, newval, oldval)
#define atomic_compare_and_exchange_bool_acq(mem, newval, oldval)

Typedefs

typedef int8_t atomic8_t
typedef uint8_t uatomic8_t
typedef int_fast8_t atomic_fast8_t
typedef uint_fast8_t uatomic_fast8_t
typedef int16_t atomic16_t
typedef uint16_t uatomic16_t
typedef int_fast16_t atomic_fast16_t
typedef uint_fast16_t uatomic_fast16_t
typedef int32_t atomic32_t
typedef uint32_t uatomic32_t
typedef int_fast32_t atomic_fast32_t
typedef uint_fast32_t uatomic_fast32_t
typedef int64_t atomic64_t
typedef uint64_t uatomic64_t
typedef int_fast64_t atomic_fast64_t
typedef uint_fast64_t uatomic_fast64_t
typedef intptr_t atomicptr_t
typedef uintptr_t uatomicptr_t
typedef intmax_t atomic_max_t
typedef uintmax_t uatomic_max_t

Define Documentation

#define atomic_compare_and_exchange_bool_acq (   mem,
  newval,
  oldval 
)
Value:
({ __typeof (mem) __gmemp = (mem);                            \
     __typeof (*mem) __gnewval = (newval);                           \
                                                              \
     *__gmemp == (oldval) ? (*__gmemp = __gnewval, 0) : 1; })

Definition at line 63 of file atomic.h.

#define atomic_compare_and_exchange_val_acq (   mem,
  newval,
  oldval 
)
Value:
({ __typeof (mem) __gmemp = (mem);                            \
     __typeof (*mem) __gret = *__gmemp;                              \
     __typeof (*mem) __gnewval = (newval);                           \
                                                              \
     if (__gret == (oldval))                                         \
       *__gmemp = __gnewval;                                         \
     __gret; })

Definition at line 54 of file atomic.h.


Typedef Documentation

Definition at line 33 of file atomic.h.

Definition at line 38 of file atomic.h.

Definition at line 43 of file atomic.h.

typedef int8_t atomic8_t

Definition at line 28 of file atomic.h.

Definition at line 35 of file atomic.h.

Definition at line 40 of file atomic.h.

Definition at line 45 of file atomic.h.

Definition at line 30 of file atomic.h.

Definition at line 50 of file atomic.h.

Definition at line 48 of file atomic.h.

Definition at line 34 of file atomic.h.

Definition at line 39 of file atomic.h.

Definition at line 44 of file atomic.h.

Definition at line 29 of file atomic.h.

Definition at line 36 of file atomic.h.

Definition at line 41 of file atomic.h.

Definition at line 46 of file atomic.h.

Definition at line 31 of file atomic.h.

Definition at line 51 of file atomic.h.

Definition at line 49 of file atomic.h.