Go to the documentation of this file.
15 #ifndef ALIGNED_16_BLOCK
19 #define ALIGNED_16_BLOCK(TYPE,NUM,PTR) \
20 uint32_t padded_space_for_pointer_##PTR \
21 [ ( ( ( NUM ) * sizeof(TYPE)) + 18 ) / 4 ]; \
24 #define ALIGNED_16_BLOCK_PTR(TYPE,NUM,PTR) \
25 reinterpret_cast< TYPE *> ((reinterpret_cast<uintptr_t>(padded_space_for_pointer_##PTR) + 15) & (~ 15))
27 #define ALIGNED_16_BLOCK_WITH_PTR(TYPE,NUM,PTR) \
28 uint32_t padded_space_for_pointer_##PTR \
29 [ ( ( ( NUM ) * sizeof(TYPE)) + 18 ) / 4 ]; \
30 TYPE * const PTR = ALIGNED_16_BLOCK_PTR(TYPE,NUM,PTR);