Function insert_m128i_to_m256i
pub fn insert_m128i_to_m256i<const LANE: i32>(a: m256i, b: m128i) -> m256i
Available on crate feature
dep_safe_arch
only.Expand description
Inserts an m128i
to an m256i
at the high or low position.
let a = m256i::from([0_i32; 8]);
let b: [i32; 8] = insert_m128i_to_m256i::<1>(a, m128i::from([1, 2, 3, 4])).into();
assert_eq!(b, [0, 0, 0, 0, 1, 2, 3, 4]);
- Intrinsic:
_mm256_inserti128_si256
- Assembly:
vinserti128 ymm, ymm, xmm, imm8