B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Typedefs | Functions | Variables
platform_align.h File Reference
#include <limits.h>
#include <malloc.h>
+ Include dependency graph for platform_align.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define ALIGN_SHARED_ATOM   ALIGNED(4)
 
#define ALIGNED(x)   __attribute__ ((aligned (x)))
 
#define ALIGNTO(x, size)   (((x) + ((size)-1)) & ~((size)-1))
 
#define atom_addrwide_read   atom_read
 
#define atom_addrwide_t   atom_t
 
#define atom_addrwide_write   atom_write
 
#define ATOM_INIT(i)   { (i) }
 
#define atom_read(v)   ((v)->c)
 
#define atom_set   atom_write
 
#define atom_write(v, i)   ((v)->c = (i))
 
#define atomic_addrwide_bool_compare_swap   atomic_bool_compare_swap32
 
#define BEGIN_PRAGMA_PACK   _Pragma("pack(1)")
 
#define BEGIN_PRAGMA_PACK_X(x)   COMPILE_MESSAGE( "pack(" #x ")" )
 
#define cache_aligned_free(ptr)   free(ptr)
 
#define cache_aligned_malloc(size)   memalign( CACHELINE_SIZE, (size) )
 
#define CACHEALIGN(x)   ALIGNTO((x), CACHELINE_SIZE)
 
#define CACHELINE_ALIGNED   ALIGNED(CACHELINE_SIZE)
 
#define CACHELINE_SIZE   64
 
#define COMPILE_MESSAGE(x)   _Pragma (#x)
 
#define END_PRAGMA_PACK   _Pragma("pack()")
 
#define END_PRAGMA_PACK_X   _Pragma("pack()")
 

Typedefs

typedef unsigned addrwide_t
 

Functions

struct __attribute__ ((aligned(4)))
 

Variables

 atom_t
 

Macro Definition Documentation

#define ALIGN_SHARED_ATOM   ALIGNED(4)
#define ALIGNED (   x)    __attribute__ ((aligned (x)))
#define ALIGNTO (   x,
  size 
)    (((x) + ((size)-1)) & ~((size)-1))
#define atom_addrwide_read   atom_read
#define atom_addrwide_t   atom_t

Referenced by __attribute__().

#define atom_addrwide_write   atom_write
#define ATOM_INIT (   i)    { (i) }
#define atom_read (   v)    ((v)->c)
#define atom_set   atom_write
#define atom_write (   v,
 
)    ((v)->c = (i))
#define atomic_addrwide_bool_compare_swap   atomic_bool_compare_swap32
#define BEGIN_PRAGMA_PACK   _Pragma("pack(1)")
#define BEGIN_PRAGMA_PACK_X (   x)    COMPILE_MESSAGE( "pack(" #x ")" )
#define cache_aligned_free (   ptr)    free(ptr)
#define cache_aligned_malloc (   size)    memalign( CACHELINE_SIZE, (size) )
#define CACHEALIGN (   x)    ALIGNTO((x), CACHELINE_SIZE)

Referenced by __attribute__().

#define CACHELINE_ALIGNED   ALIGNED(CACHELINE_SIZE)

Referenced by __attribute__().

#define CACHELINE_SIZE   64

Referenced by __attribute__().

#define COMPILE_MESSAGE (   x)    _Pragma (#x)
#define END_PRAGMA_PACK   _Pragma("pack()")
#define END_PRAGMA_PACK_X   _Pragma("pack()")

Typedef Documentation

typedef unsigned addrwide_t

Function Documentation

struct __attribute__ ( (aligned(4))  )

Variable Documentation

atom_t

Referenced by __attribute__().