[][src]Function sunrise_kernel::utils::div_ceil

pub fn div_ceil<T>(a: T, b: T) -> T where
    T: Copy + Num

Counts the numbers of b in a, rounding the result up.

Ex:

    let pages_count = div_ceil(0x3002, PAGE_SIZE);

counts the number of pages needed to store 0x3002 bytes.