Function safe_arch::shuffle_ai_i16_h64all_m128i
source ยท pub fn shuffle_ai_i16_h64all_m128i<const MASK: i32>(a: m128i) -> m128i
Available with target feature
sse2
only.Expand description
Shuffle the high 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_h64all_m128i::<0b01_00_10_11>(a);
assert_eq!(<[i16; 8]>::from(c), [1_i16, 2, 3, 4, 8, 7, 5, 6]);
- Intrinsic:
_mm_shufflehi_epi16
- Assembly:
pshufhw xmm, xmm, imm8