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