[−][src]Function safe_arch::convert_to_u16_m128i_from_lower8_u8_m128i
#[must_use]pub fn convert_to_u16_m128i_from_lower8_u8_m128i(a: m128i) -> m128i
This is supported with target feature
sse4.1
only.Convert the lower eight u8
lanes to eight u16
lanes.
let a = m128i::from([u8::MAX, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); let c: [u16; 8] = convert_to_u16_m128i_from_lower8_u8_m128i(a).into(); assert_eq!(c, [u8::MAX as u16, 1, 2, 3, 4, 5, 6, 7]);
- Intrinsic:
_mm_cvtepu8_epi16
- Assembly:
pmovzxbw xmm, xmm