[−][src]Macro safe_arch::shr_imm_u16_m128i
Shifts all u16
lanes right by an immediate.
New bits are 0s.
let a = m128i::from([1_u16, 2, 3, 4, 100, 200, 300, 400]); let c: [u16; 8] = shr_imm_u16_m128i!(a, 3).into(); assert_eq!( c, [ 1_u16 >> 3, 2 >> 3, 3 >> 3, 4 >> 3, 100 >> 3, 200 >> 3, 300 >> 3, 400 >> 3, ] );
- Intrinsic:
_mm_srli_epi16
- Assembly:
psrlw xmm, imm8