linked_list_allocator

Function align_up

Source
pub fn align_up(addr: *mut u8, align: usize) -> *mut u8
Expand description

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