tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
portable_defns.h File Reference
#include <string.h>
Include dependency graph for portable_defns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_THREADS   128 /* Nobody will ever have more! */
 
#define RMB_NEAR_CAS()   RMB()
 
#define WMB_NEAR_CAS()   WMB()
 
#define MB_NEAR_CAS()   MB()
 
#define FALSE   0
 
#define TRUE   1
 
#define ADD_TO(_v, _x)
 
#define CACHE_PAD(_n)   char __pad ## _n [CACHE_LINE_SIZE]
 
#define ALIGNED_ALLOC(_s)
 
#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 READ_FIELD(_x, _f)   ((_x) = (_f))
 
#define WEAK_DEP_ORDER_RMB()   ((void)0)
 
#define WEAK_DEP_ORDER_WMB()   ((void)0)
 
#define WEAK_DEP_ORDER_MB()   ((void)0)
 

Typedefs

typedef unsigned long int_addr_t
 
typedef int bool_t
 

Macro Definition Documentation

#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:
((void *)(((unsigned long)malloc((_s)+CACHE_LINE_SIZE*2) + \
const unsigned long CACHE_LINE_SIZE
Definition: grid.c:83
#define CACHE_PAD (   _n)    char __pad ## _n [CACHE_LINE_SIZE]
#define FALSE   0
#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 TRUE   1
#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()

Typedef Documentation

typedef int bool_t
typedef unsigned long int_addr_t