[−][src]Function safe_arch::sub_horizontal_i32_m128i
#[must_use]pub fn sub_horizontal_i32_m128i(a: m128i, b: m128i) -> m128i
This is supported with target feature
ssse3
only.Subtract horizontal pairs of i32
values, pack the outputs as a
then b
.
let a = m128i::from([1, 29, 3, 42]); let b = m128i::from([5, 96, 7, 84]); let c: [i32; 4] = sub_horizontal_i32_m128i(a, b).into(); assert_eq!(c, [-28, -39, -91, -77]);