Skip to main content

mul_div_wide

Function mul_div_wide 

Source
fn mul_div_wide(a: i64, b: i64, c: i64) -> i64
Expand description

Returns a * b / c, rounded as Fixed::mul_div rounds, without overflowing on the way.

Design maps hold any i32, so the differences between their points don’t fit in one.