clang 22.0.0git
amo.h File Reference
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  {
  _AMO_LD_ADD = 0x00 , _AMO_LD_XOR = 0x01 , _AMO_LD_IOR = 0x02 , _AMO_LD_AND = 0x03 ,
  _AMO_LD_UMAX = 0x04 , _AMO_LD_SMAX = 0x05 , _AMO_LD_UMIN = 0x06 , _AMO_LD_SMIN = 0x07 ,
  _AMO_LD_SWAP = 0x08
}

Functions

static uint32_t amo_lwat_add (uint32_t *ptr, uint32_t val)
static uint32_t amo_lwat_xor (uint32_t *ptr, uint32_t val)
static uint32_t amo_lwat_ior (uint32_t *ptr, uint32_t val)
static uint32_t amo_lwat_and (uint32_t *ptr, uint32_t val)
static uint32_t amo_lwat_umax (uint32_t *ptr, uint32_t val)
static uint32_t amo_lwat_umin (uint32_t *ptr, uint32_t val)
static uint32_t amo_lwat_swap (uint32_t *ptr, uint32_t val)
static uint64_t amo_ldat_add (uint64_t *ptr, uint64_t val)
static uint64_t amo_ldat_xor (uint64_t *ptr, uint64_t val)
static uint64_t amo_ldat_ior (uint64_t *ptr, uint64_t val)
static uint64_t amo_ldat_and (uint64_t *ptr, uint64_t val)
static uint64_t amo_ldat_umax (uint64_t *ptr, uint64_t val)
static uint64_t amo_ldat_umin (uint64_t *ptr, uint64_t val)
static uint64_t amo_ldat_swap (uint64_t *ptr, uint64_t val)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
_AMO_LD_ADD 
_AMO_LD_XOR 
_AMO_LD_IOR 
_AMO_LD_AND 
_AMO_LD_UMAX 
_AMO_LD_SMAX 
_AMO_LD_UMIN 
_AMO_LD_SMIN 
_AMO_LD_SWAP 

Definition at line 23 of file amo.h.

Function Documentation

◆ amo_ldat_add()

uint64_t amo_ldat_add ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 65 of file amo.h.

References _AMO_LD_ADD.

◆ amo_ldat_and()

uint64_t amo_ldat_and ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 77 of file amo.h.

References _AMO_LD_AND.

◆ amo_ldat_ior()

uint64_t amo_ldat_ior ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 73 of file amo.h.

References _AMO_LD_IOR.

◆ amo_ldat_swap()

uint64_t amo_ldat_swap ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 89 of file amo.h.

References _AMO_LD_SWAP.

◆ amo_ldat_umax()

uint64_t amo_ldat_umax ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 81 of file amo.h.

References _AMO_LD_UMAX.

◆ amo_ldat_umin()

uint64_t amo_ldat_umin ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 85 of file amo.h.

References _AMO_LD_UMIN.

◆ amo_ldat_xor()

uint64_t amo_ldat_xor ( uint64_t * ptr,
uint64_t val )
inlinestatic

Definition at line 69 of file amo.h.

References _AMO_LD_XOR.

◆ amo_lwat_add()

uint32_t amo_lwat_add ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 36 of file amo.h.

References _AMO_LD_ADD.

◆ amo_lwat_and()

uint32_t amo_lwat_and ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 48 of file amo.h.

References _AMO_LD_AND.

◆ amo_lwat_ior()

uint32_t amo_lwat_ior ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 44 of file amo.h.

References _AMO_LD_IOR.

◆ amo_lwat_swap()

uint32_t amo_lwat_swap ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 60 of file amo.h.

References _AMO_LD_SWAP.

◆ amo_lwat_umax()

uint32_t amo_lwat_umax ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 52 of file amo.h.

References _AMO_LD_UMAX.

◆ amo_lwat_umin()

uint32_t amo_lwat_umin ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 56 of file amo.h.

References _AMO_LD_UMIN.

◆ amo_lwat_xor()

uint32_t amo_lwat_xor ( uint32_t * ptr,
uint32_t val )
inlinestatic

Definition at line 40 of file amo.h.

References _AMO_LD_XOR.