[−][src]Function safe_arch::sub_horizontal_saturating_i16_m128i
#[must_use]pub fn sub_horizontal_saturating_i16_m128i(a: m128i, b: m128i) -> m128i
This is supported with target feature
ssse3
only.Subtract horizontal pairs of i16
values, saturating, pack the outputs as
a
then b
.
let a = m128i::from([i16::MIN, 1, 3, 49, -1, -27, -3, -412]); let b = m128i::from([5_i16, 699, 7, 877, -15, -2664, -37, 4008]); let c: [i16; 8] = sub_horizontal_saturating_i16_m128i(a, b).into(); assert_eq!(c, [i16::MIN, -46, 26, 409, -694, -870, 2649, -4045]);