[−][src]Function safe_arch::shr_all_i16_m128i
#[must_use]pub fn shr_all_i16_m128i(a: m128i, count: m128i) -> m128i
This is supported with target feature
sse2
only.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] = shr_all_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] );