[−][src]Function sunrise_kernel::utils::align_up
pub fn align_up<T>(addr: T, align: T) -> T where
T: Copy + Not<Output = T> + BitAnd<T, Output = T> + Num,
Align the address to the next alignment.
The given number should be a power of two to get coherent results!
Panics
Panics on underflow if align is 0.
Panics on overflow if the expression addr + (align - 1)
overflows.