sdiv_into_u8

Function sdiv_into_u8 

Source
pub const fn sdiv_into_u8<const B: u32, const ARG: u32>(v: f32) -> u8
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.