Function safe_arch::convert_to_i16_m256i_from_lower8_u8_m128i
source ยท pub fn convert_to_i16_m256i_from_lower8_u8_m128i(a: m128i) -> m256i
Available with target feature
avx2
only.Expand description
Convert lower 8 u8
values to i16
values.
let a = m128i::from([5_u8; 16]);
let b: [i32; 8] = convert_to_i16_m256i_from_lower8_u8_m128i(a).into();
assert_eq!(b, [5_i32; 8]);
- Intrinsic:
_mm256_cvtepu8_epi32
- Assembly:
vpmovzxbd ymm, xmm