Function keos::mm::align_up

source ·
pub fn align_up(addr: usize, align: usize) -> usize
Expand description

Align upwards. Returns the smallest x with alignment align so that x >= addr. The alignment must be a power of 2.