[−][src]Function safe_arch::abs_i16_m128i
#[must_use]pub fn abs_i16_m128i(a: m128i) -> m128i
This is supported with target feature
ssse3
only.Lanewise absolute value with lanes as i16
.
This is a "wrapping" absolute value, so i16::MIN
stays as i16::MIN
.
let a = m128i::from([0_i16, 1, 2, 3, 4, 5, 6, i16::MIN]); let c: [i16; 8] = abs_i16_m128i(a).into(); assert_eq!(c, [0_i16, 1, 2, 3, 4, 5, 6, i16::MIN]);