pub fn mul_power<T, U>(b: T, a: T, p: U) -> TExpand description
calcurate $b \cdot a^p$ with exponentiation by squaring
This function doesn’t require T: num_traits::One.
use ring_algorithm::mul_power;
assert_eq!(mul_power::<i32, u64>(3, 2, 7), 384);