[−][src]Function safe_arch::shr_all_u16_m256i
#[must_use]pub fn shr_all_u16_m256i(a: m256i, count: m128i) -> m256i
This is supported with target feature
avx2
only.Lanewise u16
shift right by the lower u64
lane of count
.
let a = m256i::from([5_u16, 6, 2, 5, 4, 3, 1, 0, 12, 13, 56, 21, 8, 7, 6, 5]); let count = m128i::from(1_u128); let b: [u16; 16] = shr_all_u16_m256i(a, count).into(); assert_eq!(b, [2, 3, 1, 2, 2, 1, 0, 0, 6, 6, 28, 10, 4, 3, 3, 2]);
- Intrinsic:
_mm256_srl_epi16
- Assembly:
vpsrlw ymm, ymm, xmm