[][src]Function safe_arch::intel::shift_right_i16_m128i

#[must_use]pub fn shift_right_i16_m128i(a: m128i, count: m128i) -> m128i

Shift each i16 lane to the right by the count in the lower i64 lane.

New bits are the sign bit.

let a = m128i::from([1_i16, 2, 3, 4, -1, -2, -3, -4]);
let b = m128i::from([3_i64, 0]);
let c: [i16; 8] = shift_right_i16_m128i(a, b).into();
assert_eq!(
  c,
  [1_i16 >> 3, 2 >> 3, 3 >> 3, 4 >> 3, -1 >> 3, -2 >> 3, -3 >> 3, -4 >> 3]
);