PAPI 7.1.0.0
Loading...
Searching...
No Matches
tile.h File Reference
Include dependency graph for tile.h:

Go to the source code of this file.

Macros

#define AO_HAVE_nop_full
 
#define AO_HAVE_fetch_and_add_full
 
#define AO_HAVE_fetch_compare_and_swap_full
 

Functions

AO_INLINE void AO_nop_full (void)
 
AO_INLINE AO_t AO_fetch_and_add_full (volatile AO_t *p, AO_t incr)
 
AO_INLINE AO_t AO_fetch_compare_and_swap_full (volatile AO_t *addr, AO_t old_val, AO_t new_val)
 

Macro Definition Documentation

◆ AO_HAVE_fetch_and_add_full

#define AO_HAVE_fetch_and_add_full

Definition at line 37 of file tile.h.

◆ AO_HAVE_fetch_compare_and_swap_full

#define AO_HAVE_fetch_compare_and_swap_full

Definition at line 46 of file tile.h.

◆ AO_HAVE_nop_full

#define AO_HAVE_nop_full

Definition at line 30 of file tile.h.

Function Documentation

◆ AO_fetch_and_add_full()

AO_INLINE AO_t AO_fetch_and_add_full ( volatile AO_t p,
AO_t  incr 
)

Definition at line 33 of file tile.h.

34 {
35 return __sync_fetch_and_add(p, incr);
36 }

◆ AO_fetch_compare_and_swap_full()

AO_INLINE AO_t AO_fetch_compare_and_swap_full ( volatile AO_t addr,
AO_t  old_val,
AO_t  new_val 
)

Definition at line 40 of file tile.h.

42 {
43 return __sync_val_compare_and_swap(addr, old_val, new_val
44 /* empty protection list */);
45 }

◆ AO_nop_full()

AO_INLINE void AO_nop_full ( void  )

Definition at line 26 of file tile.h.

27 {
28 __sync_synchronize();
29 }