pub fn apply_scale_32(
value: i32,
multiplier: i32,
shift: i8,
double_round: bool,
) -> Result<i32, IntegerError>Expand description
Apply TOSA’s 32-bit fixed-point scaling helper exactly.
This is apply_scale_32 from TOSA 1.0.1. The arithmetic right shift is explicit and every
pseudocode REQUIRE is checked before calculating the result.