CARB_ALIGNED_SIZE
Defined in carb/Defines.h
-
CARB_ALIGNED_SIZE(size, alignment)
Aligns a size to the given alignment.
Note
The alignment need not be a power-of-two.
- Parameters
size – The size to align.
alignment – The alignment value in bytes.
- Returns
If
sizeis already aligned toalignment, returnssize; otherwise returnssizerounded up to the next multiple ofalignment.