Function shl_imm_u16_m256i
pub fn shl_imm_u16_m256i<const IMM: i32>(a: m256i) -> m256i
Available on crate feature
dep_safe_arch
only.Expand description
Shifts all u16
lanes left by an immediate.
let a = m256i::from([1_u16, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4]);
let c: [u16; 16] = shl_imm_u16_m256i::<1>(a).into();
assert_eq!(c, [2, 4, 6, 8, 2, 4, 6, 8, 2, 4, 6, 8, 2, 4, 6, 8]);
- Intrinsic:
_mm256_slli_epi16
- Assembly:
vpsllw ymm, ymm, imm8