Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
align_16.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define ALIGNED_16_BLOCK(TYPE, NUM, PTR)
 
#define ALIGNED_16_BLOCK_PTR(TYPE, NUM, PTR)   reinterpret_cast< TYPE *> ((reinterpret_cast<uintptr_t>(padded_space_for_pointer_##PTR) + 15) & (~ 15))
 
#define ALIGNED_16_BLOCK_WITH_PTR(TYPE, NUM, PTR)
 

Macro Definition Documentation

#define ALIGNED_16_BLOCK (   TYPE,
  NUM,
  PTR 
)
Value:
uint32_t padded_space_for_pointer_##PTR \
[ ( ( ( NUM ) * sizeof(TYPE)) + 18 ) / 4 ]; \
TYPE * const PTR;

Definition at line 19 of file align_16.h.

#define ALIGNED_16_BLOCK_PTR (   TYPE,
  NUM,
  PTR 
)    reinterpret_cast< TYPE *> ((reinterpret_cast<uintptr_t>(padded_space_for_pointer_##PTR) + 15) & (~ 15))

Definition at line 24 of file align_16.h.

#define ALIGNED_16_BLOCK_WITH_PTR (   TYPE,
  NUM,
  PTR 
)
Value:
uint32_t padded_space_for_pointer_##PTR \
[ ( ( ( NUM ) * sizeof(TYPE)) + 18 ) / 4 ]; \
TYPE * const PTR = ALIGNED_16_BLOCK_PTR(TYPE,NUM,PTR);
#define ALIGNED_16_BLOCK_PTR(TYPE, NUM, PTR)
Definition: align_16.h:24

Definition at line 27 of file align_16.h.