Data Structures |
union | cuP_alignment_u |
struct | cuP_alignment_test_s |
Defines |
#define | CU_SWAP(value_t, x, y) |
#define | CU_RETURN_UNLESS_FIRST_CALL |
#define | cu_ptr_context(type, field, ptr) ((type *)((char *)(ptr) - offsetof(type, field))) |
#define | CU_FULL_ALIGNMENT (sizeof(struct cuP_alignment_test_s) - sizeof(union cuP_alignment_u)) |
#define | cu_aligned_floor(size) ((size)/CU_FULL_ALIGNMENT*CU_FULL_ALIGNMENT) |
#define | cu_aligned_ceil(size) (((size) + CU_FULL_ALIGNMENT - 1)/CU_FULL_ALIGNMENT*CU_FULL_ALIGNMENT) |
#define | CU_ALIGNED_SIZEOF(type) cu_aligned_ceil(sizeof(type)) |
#define | CU_ALIGNED_PTR_END(ptr) ((void *)((char*)(ptr) + cu_aligned_ceil(sizeof(*ptr)))) |
#define | CU_ALIGNED_PTR_FROM_END(ptr_t, ptr) ((ptr_t)((char*)(ptr) - cu_aligned_ceil(sizeof(*(ptr_t)NULL)))) |
#define | CU_ALIGNED_MARG_END(ptr_t, ptr) CU_ALIGNED_PTR_END(CU_MARG(ptr_t, ptr)) |