Function libbgs::util::long_multiply

source ·
pub const fn long_multiply<const M: u128>(a: u128, b: u128) -> u128
Expand description

Returns the product of a and b modulo m. This function will panic if m >= 2^127. Otherwise, it is guarenteed that there will not be integer overflow.