devela::_dep::safe_arch

Function sub_i32_m128i

pub fn sub_i32_m128i(a: m128i, b: m128i) -> m128i
Available on crate feature dep_safe_arch only.
Expand description

Lanewise a - b with lanes as i32.

let a = m128i::from([1, 2, 3, 4]);
let b = m128i::from([50, 60, 70, 87]);
let c: [i32; 4] = sub_i32_m128i(a, b).into();
assert_eq!(c, [-49, -58, -67, -83]);