cairo_vm::math_utils

Function div_mod

Source
pub fn div_mod(n: &BigInt, m: &BigInt, p: &BigInt) -> Result<BigInt, MathError>
Expand description

Finds a nonnegative integer x < p such that (m * x) % p == n.