[][src]Function polymorph_allocator::align_up

pub fn align_up(addr: usize, align: usize) -> usize

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

Panics

Will panic if align is not a power of two.