Function safe_arch::shl_imm_u16_m128i
source · pub fn shl_imm_u16_m128i<const IMM: i32>(a: m128i) -> m128i
Expand description
Shifts all u16
lanes left by an immediate.
let a = m128i::from([1_u16, 2, 3, 4, 1, 2, 3, 4]);
let c: [u16; 8] = shl_imm_u16_m128i::<3>(a).into();
assert_eq!(c, [1_u16 << 3, 2 << 3, 3 << 3, 4 << 3, 1 << 3, 2 << 3, 3 << 3, 4 << 3]);