Expand description
Alignment utilities.
Constants§
- CACHE_
LINE_ SIZE - Cache line size (64 bytes on most modern CPUs).
- GPU_
CACHE_ LINE_ SIZE - GPU cache line size (128 bytes on many GPUs).
Functions§
- align_
down - Align a value down to the previous multiple of alignment.
- align_
up - Align a value up to the next multiple of alignment.
- is_
aligned - Check if a value is aligned.
- padding_
for - Get required padding for alignment.