[−][src]Macro safe_arch::blend_i32_m128i
This is supported with target feature
avx2
only.Blends the i32
lanes in $a
and $b
into a single value.
- The blend is controlled by an immediate mask value (an
i32
). - For each lane
0..=3
, use0
if you want that lane of the output to be from$a
and use1
if you want that lane of the output to be from$b
.
let a = m128i::from([10, 20, 30, 40]); let b = m128i::from([100, 200, 300, 400]); // let c: [i32; 4] = blend_i32_m128i!(a, b, 0b0110).into(); assert_eq!(c, [10, 200, 300, 40]);
- Intrinsic:
_mm_blend_epi32
- Assembly:
vpblendd xmm, xmm, xmm, imm8