Function safe_arch::shr_imm_u64_m128i
source ยท pub fn shr_imm_u64_m128i<const IMM: i32>(a: m128i) -> m128i
Available with target feature
sse2
only.Expand description
Shifts both u64
lanes right by an immediate.
let a = m128i::from([1_u64, 200]);
let c: [u64; 2] = shr_imm_u64_m128i::<3>(a).into();
assert_eq!(c, [1_u64 >> 3, 200 >> 3]);
- Intrinsic:
_mm_srli_epi64
- Assembly:
psrlq xmm, imm8