(a: usize, b: (usize, usize))
| 35 | /// ceil of a * b, where a is integer and b is a rational number |
| 36 | #[inline] |
| 37 | pub(crate) fn ceil_mul(a: usize, b: (usize, usize)) -> usize { |
| 38 | (a * b.0 + b.1 - 1) / b.1 |
| 39 | } |
| 40 | |
| 41 | /// Return ceil(x / y). |
| 42 | pub(crate) fn ceil_div(x: usize, y: usize) -> usize { |