[−][src]Macro safe_arch::shr_imm_i16_m128i
Shifts all i16
lanes right by an immediate.
New bits are the sign bit.
let a = m128i::from([1_i16, 2, 3, 4, -1, -2, -3, -4]); let c: [i16; 8] = shr_imm_i16_m128i!(a, 3).into(); assert_eq!( c, [1_i16 >> 3, 2 >> 3, 3 >> 3, 4 >> 3, -1 >> 3, -2 >> 3, -3 >> 3, -4 >> 3] );