Function safe_arch::shuffle_ai_i16_l64all_m128i [−][src]
pub fn shuffle_ai_i16_l64all_m128i<const MASK: i32>(a: m128i) -> m128iExpand description
Shuffle the low i16 lanes in $a using an immediate control value.
let a = m128i::from([1_i16, 2, 3, 4, 5, 6, 7, 8]);
//
let c = shuffle_ai_i16_l64all_m128i::<0b01_11_10_00>(a);
assert_eq!(<[i16; 8]>::from(c), [1_i16, 3, 4, 2, 5, 6, 7, 8]);- Intrinsic:
_mm_shufflelo_epi16 - Assembly:
pshuflw xmm, xmm, imm8