Skip to main content

apply_scale_16

Function apply_scale_16 

Source
pub fn apply_scale_16(
    value: i64,
    multiplier: i16,
    shift: i8,
) -> Result<i32, IntegerError>
Expand description

Apply TOSA’s 16-bit fixed-point scaling helper exactly.

value is represented in an i64, but must fit TOSA’s signed 48-bit accumulator domain.