[−][src]Function safe_arch::shl_each_u32_m128i
#[must_use]pub fn shl_each_u32_m128i(a: m128i, count: m128i) -> m128i
This is supported with target feature
avx2
only.Shift u32
values to the left by count
bits.
- Each
u32
lane ina
is shifted by the same indexedu32
lane incount
.
let a = m128i::from([1, 2, 3, 4]); let count = m128i::from([5, 6, 7, 8]); let out: [u32; 4] = shl_each_u32_m128i(a, count).into(); assert_eq!(out, [1 << 5, 2 << 6, 3 << 7, 4 << 8]);
- Intrinsic:
_mm_sllv_epi32
- Assembly:
vpsllvd xmm, xmm, xmm