Function libbgs_util::long_multiply
source · pub const fn long_multiply<const M: u128>(a: u128, b: u128) -> u128Expand 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.