[][src]Function sunrise_kernel::utils::align_down

pub fn align_down<T>(addr: T, align: T) -> T where
    T: Copy + Not<Output = T> + BitAnd<T, Output = T> + Num

Align the address to the previous alignment.

The given number should be a power of two to get coherent results!

Panics

Panics on underflow if align is 0.