Skip to main content

narrow_range_grid_nests

Function narrow_range_grid_nests 

Source
pub const fn narrow_range_grid_nests(src_bits: u8, dst_bits: u8) -> bool
Expand description

Whether the narrow-range src_bits integer code grid embeds exact inside the dst_bits narrow-range grid (power-of-two scaling requires src_bits >= 8 and dst_bits >= src_bits).