[−][src]Function safe_arch::shl_each_u64_m128i
#[must_use]pub fn shl_each_u64_m128i(a: m128i, count: m128i) -> m128i
This is supported with target feature
avx2
only.Shift u64
values to the left by count
bits.
- Each
u64
lane ina
is shifted by the same indexedu64
lane incount
.
let a = m128i::from([1_u64, 2]); let count = m128i::from([3_u64, 4]); let out: [u64; 2] = shl_each_u64_m128i(a, count).into(); assert_eq!(out, [1_u64 << 3, 2 << 4]);
- Intrinsic:
_mm_sllv_epi64
- Assembly:
vpsllvq xmm, xmm, xmm