SDK Align API documentation

Version: stable

<dmsdk/dlib/align.h>

Alignment macros. Use for compiler compatibility

Macros

DM_ALIGN

value alignment macro

Align a value to a boundary

x

int value to align

a

int alignment boundary

EXAMPLES

Align 24 to 16 alignment boundary. results is 16:

int result = DM_ALIGN(24, 16);

DM_ALIGNED

data structure alignment macro

Data structure alignment

a

int number of bytes to align to

EXAMPLES

Align m_Data to 16 bytes alignment boundary:

int DM_ALIGNED(16) m_Data;