Skip to main content

pack_int4

Function pack_int4 

Source
pub const fn pack_int4(low: i8, high: i8) -> Option<u8>
Expand description

Pack two TOSA INT4 values, with low in the low nibble and high in the high nibble.

TOSA 1.0 defines INT4 values over -7..=7, so -8 and out-of-range inputs are rejected.