[−][src]Macro safe_arch::shl_imm_u64_m256i
This is supported with target feature
avx2
only.Shifts all u64
lanes left by an immediate.
let a = m256i::from([1_u64, 2, 3, 4]); let c: [u64; 4] = shl_imm_u64_m256i!(a, 1).into(); assert_eq!(c, [1_u64 << 1, 2 << 1, 3 << 1, 4 << 1,]);
- Intrinsic:
_mm256_slli_epi64
- Assembly:
vpsllq ymm, ymm, imm8