pub fn mul_q12_i32(value: i32, q12: i32) -> i32Expand description
Multiply an i32 by a Q1.12 factor (4096 = 1.0) without a
64-bit intermediate.
The value splits into whole sectors (value >> 12) and the
Q0.12 fraction (value & 0xFFF); each part multiplies the
factor separately and the partial products saturate, so the
result stays exact wherever the true product fits in i32 and
saturates instead of wrapping where it does not.