Function safe_arch::convert_to_i16_m256i_from_i8_m128i

source ยท
pub fn convert_to_i16_m256i_from_i8_m128i(a: m128i) -> m256i
Available with target feature avx2 only.
Expand description

Convert i8 values to i16 values.

let a = m128i::from([-5_i8; 16]);
let b: [i16; 16] = convert_to_i16_m256i_from_i8_m128i(a).into();
assert_eq!(b, [-5_i16; 16]);