Function safe_arch::pack_i32_to_i16_m128i [−][src]
Expand description
Saturating convert i32
to i16
, and pack the values.
let a = m128i::from([1_i32, 2, 3, 4]);
let b = m128i::from([5_i32, 6, 7, 8]);
let c: [i16; 8] = pack_i32_to_i16_m128i(a, b).into();
assert_eq!(c, [1_i16, 2, 3, 4, 5, 6, 7, 8]);