Function stable_swap::math::mul_div[][src]

pub fn mul_div(a: u64, b: u64, c: u64) -> Option<u64>
Expand description

Multiplies two u64s then divides by the third number. This function attempts to use 64 bit math if possible.