Function shl_all_u32_m256i
pub fn shl_all_u32_m256i(a: m256i, count: m128i) -> m256i
Available on crate feature
dep_safe_arch
only.Expand description
Shift all u32
lanes left by the lower u64
lane of count
.
let a = m256i::from([0_u32, 1, 2, 13, 4, 15, 6, 17]);
let count = m128i::from(1_u128);
let b: [u32; 8] = shl_all_u32_m256i(a, count).into();
assert_eq!(b, [0, 2, 4, 26, 8, 30, 12, 34]);
- Intrinsic:
_mm256_sll_epi32
- Assembly:
vpslld ymm, ymm, xmm