Function safe_arch::shuffle_ai_f32_all_m128i
source · pub fn shuffle_ai_f32_all_m128i<const MASK: i32>(a: m128i) -> m128i
Expand description
Shuffle the i32
lanes in $a
using an immediate
control value.
let a = m128i::from([6, 7, 8, 9]);
//
let c = shuffle_ai_f32_all_m128i::<0b01_10_10_00>(a);
assert_eq!(<[i32; 4]>::from(c), [6, 8, 8, 7]);
- Intrinsic:
_mm_shuffle_epi32
- Assembly:
pshufd xmm, xmm, imm8