#include <limits.h>
#include <malloc.h>
#define ALIGN_SHARED_ATOM ALIGNED(4) |
#define ALIGNTO |
( |
|
x, |
|
|
|
size |
|
) |
| (((x) + ((size)-1)) & ~((size)-1)) |
Referenced by __attribute__(), _throttle_log(), get_object(), get_object_nolock(), get_object_NOLOCK(), get_object_slave(), get_object_slave_NOLOCK(), return_object(), return_object_NOLOCK(), return_object_slave(), and return_object_slave_NOLOCK().
#define atom_addrwide_t atom_t |
#define ATOM_INIT |
( |
|
i | ) |
{ (i) } |
#define atom_read |
( |
|
v | ) |
((v)->c) |
Referenced by __attribute__(), fifo_claim_continuous_space_for_push(), fifo_commit_peek(), fifo_commit_push(), fifo_create(), fifo_is_empty(), fifo_is_full(), fifo_is_ready(), fifo_peek_continuous_buf(), fifo_pop(), fifo_push(), message_queue_claim_space_for_push(), message_queue_create(), message_queue_is_empty(), message_queue_is_full(), message_queue_is_ready(), message_queue_peek(), message_queue_pop(), message_queue_push(), and sharp_spin_lock().
Referenced by fifo_commit_peek(), fifo_commit_push(), fifo_create(), fifo_pop(), fifo_push(), message_queue_commit_peek(), message_queue_commit_push(), message_queue_create(), message_queue_pop(), message_queue_push(), and message_queue_reinit().
#define atom_write |
( |
|
v, |
|
|
|
i |
|
) |
| ((v)->c = (i)) |
#define BEGIN_PRAGMA_PACK _Pragma("pack(1)") |
#define cache_aligned_free |
( |
|
ptr | ) |
free(ptr) |
#define cache_aligned_malloc |
( |
|
size | ) |
memalign( CACHELINE_SIZE, (size) ) |
#define CACHELINE_SIZE 64 |
#define COMPILE_MESSAGE |
( |
|
x | ) |
_Pragma (#x) |
#define END_PRAGMA_PACK _Pragma("pack()") |
#define END_PRAGMA_PACK_X _Pragma("pack()") |
struct __attribute__ |
( |
(aligned(4)) |
| ) |
|