sdiv_into_u16

Function sdiv_into_u16 

Source
pub const fn sdiv_into_u16<const B: u32, const ARG: u32>(v: f32) -> u16
Expand description

Saturates the raw count to [-2^(B-1), 2^(B-1) - 1], then masks to B bits so the two’s-complement pattern fits the field.