Function safe_arch::shr_imm_i32_m128i
source ยท pub fn shr_imm_i32_m128i<const IMM: i32>(a: m128i) -> m128i
Available with target feature
sse2
only.Expand description
Shifts all i32
lanes right by an immediate.
New bits are the sign bit.
let a = m128i::from([1, 2, -3, -4]);
let c: [i32; 4] = shr_imm_i32_m128i::<3>(a).into();
assert_eq!(c, [1 >> 3, 2 >> 3, -3 >> 3, -4 >> 3]);