Function safe_arch::shr_imm_u32_m128i
source · pub fn shr_imm_u32_m128i<const IMM: i32>(a: m128i) -> m128i
Expand description
Shifts all u32
lanes right by an immediate.
let a = m128i::from([1, 2, 300, 400]);
let c: [u32; 4] = shr_imm_u32_m128i::<3>(a).into();
assert_eq!(c, [1 >> 3, 2 >> 3, 300 >> 3, 400 >> 3]);
- Intrinsic:
_mm_srli_epi32
- Assembly:
psrld xmm, imm8