pub fn shr_imm_i16_m128i<const IMM: i32>(a: m128i) -> m128i
Available with target feature sse2 only.
Expand description

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::<3>(a).into();
assert_eq!(c, [1_i16 >> 3, 2 >> 3, 3 >> 3, 4 >> 3, -1 >> 3, -2 >> 3, -3 >> 3, -4 >> 3]);