[−][src]Function safe_arch::shr_all_u32_m256i
#[must_use]pub fn shr_all_u32_m256i(a: m256i, count: m128i) -> m256i
This is supported with target feature
avx2
only.Lanewise u32
shift right 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] = shr_all_u32_m256i(a, count).into(); assert_eq!(b, [0, 0, 1, 6, 2, 7, 3, 8]);
- Intrinsic:
_mm256_srl_epi32
- Assembly:
vpsrld ymm, ymm, xmm