#include <string.h>
Go to the source code of this file.
#define ADD_TO |
( |
|
_v, |
|
|
|
_x |
|
) |
| |
Value:do { \
int __val = (_v), __newval; \
while ( (__newval =
CASIO(&(_v),__val,__val+(_x))) != __val ) \
__val = __newval; \
} while ( 0 )
#define CASIO
Definition: intel_defns.h:56
#define ALIGNED_ALLOC |
( |
|
_s | ) |
|
Value:
const unsigned long CACHE_LINE_SIZE
Definition: grid.c:83
#define get_marked_ref |
( |
|
_p | ) |
((void *)(((unsigned long)(_p)) | 1)) |
#define get_unmarked_ref |
( |
|
_p | ) |
((void *)(((unsigned long)(_p)) & ~1)) |
#define is_marked_ref |
( |
|
_p | ) |
(((unsigned long)(_p)) & 1) |
#define MAX_THREADS 128 /* Nobody will ever have more! */ |
#define MB_NEAR_CAS |
( |
| ) |
MB() |
#define READ_FIELD |
( |
|
_x, |
|
|
|
_f |
|
) |
| ((_x) = (_f)) |
#define RMB_NEAR_CAS |
( |
| ) |
RMB() |
#define WEAK_DEP_ORDER_MB |
( |
| ) |
((void)0) |
#define WEAK_DEP_ORDER_RMB |
( |
| ) |
((void)0) |
#define WEAK_DEP_ORDER_WMB |
( |
| ) |
((void)0) |
#define WMB_NEAR_CAS |
( |
| ) |
WMB() |