[][src]Module polymorph_allocator::align

Alignment utility functions

Functions

align_down

Align an address downwards, returning the greatest X with alignment align so that x <= addr. The alignment must be a power of two.

align_up

Align an address upwards, returning the smallest X with alignment align so that x >= addr. The alignment must be a power of two.