Function unpack_high_i16_m256i
pub fn unpack_high_i16_m256i(a: m256i, b: m256i) -> m256i
Available on crate feature
dep_safe_arch
only.Expand description
Unpack and interleave high i16
lanes of a
and b
.
- Operates on the high half of each 128 bit portion.
let a = m256i::from([5_i16, 6, 2, 5, 4, 3, 1, 0, -12, 13, 56, 21, 8, 7, 6, 5]);
let b = m256i::from([12000_i16, 13000, -2, -8, 0, 1, 2, 3, -8, -7, 6, 5, 0, 0, 0, 978]);
let c: [i16; 16] = unpack_high_i16_m256i(a, b).into();
assert_eq!(c, [4, 0, 3, 1, 1, 2, 0, 3, 8, 0, 7, 0, 6, 0, 5, 978]);
- Intrinsic:
_mm256_unpackhi_epi16
- Assembly:
vpunpckhwd ymm, ymm, ymm