MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / ceil_mul

Function ceil_mul

poly-commit/src/utils.rs:37–39  ·  view source on GitHub ↗
(a: usize, b: (usize, usize))

Source from the content-addressed store, hash-verified

35/// ceil of a * b, where a is integer and b is a rational number
36#[inline]
37pub(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).
42pub(crate) fn ceil_div(x: usize, y: usize) -> usize {

Callers 4

newMethod · 0.85
cnMethod · 0.85
dnMethod · 0.85
mat_sizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected