[][src]Function safe_arch::sub_saturating_i16_m128i

#[must_use]pub fn sub_saturating_i16_m128i(a: m128i, b: m128i) -> m128i
This is supported with target feature sse2 only.

Lanewise saturating a - b with lanes as i16.

let a = m128i::from([1_i16, 2, 3, 4, -1, -2, -3, -4]);
let b = m128i::from([51_i16, 61, 71, 81, i16::MAX, -26, -37, 48]);
let c: [i16; 8] = sub_saturating_i16_m128i(a, b).into();
assert_eq!(c, [-50, -59, -68, -77, -32768, 24, 34, -52]);