[][src]Function sunrise_libutils::div_ceil

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

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.