Function safe_arch::shr_all_i32_m256i
source · pub fn shr_all_i32_m256i(a: m256i, count: m128i) -> m256i
Expand description
Lanewise i32
shift right by the lower i64
lane of count
.
let a = m256i::from([0_i32, 1, -2, -13, 4, 15, 6, -17]);
let count = m128i::from(1_i128);
let b: [i32; 8] = shr_all_i32_m256i(a, count).into();
assert_eq!(b, [0, 0, -1, -7, 2, 7, 3, -9]);
- Intrinsic:
_mm256_sra_epi32
- Assembly:
vpsrad ymm, ymm, xmm