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

Go to the source code of this file.

Macros

#define AO_HAVE_test_and_set_full
 

Functions

AO_INLINE AO_TS_VAL_t AO_test_and_set_full (volatile AO_TS_t *addr)
 

Macro Definition Documentation

◆ AO_HAVE_test_and_set_full

#define AO_HAVE_test_and_set_full

Definition at line 32 of file sh.h.

Function Documentation

◆ AO_test_and_set_full()

AO_INLINE AO_TS_VAL_t AO_test_and_set_full ( volatile AO_TS_t addr)

Definition at line 22 of file sh.h.

23{
24 int oldval;
25 __asm__ __volatile__(
26 "tas.b @%1; movt %0"
27 : "=r" (oldval)
28 : "r" (addr)
29 : "t", "memory");
30 return oldval? AO_TS_CLEAR : AO_TS_SET;
31}
#define AO_TS_CLEAR
Definition: gcc/hppa.h:45
#define AO_TS_SET
Definition: gcc/hppa.h:46