devela::_dep::safe_arch

Function sub_m128_s

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

Low lane a - b, other lanes unchanged.

let a = m128::from_array([1.0, 2.0, 3.0, 4.0]);
let b = m128::from_array([5.0, 8.0, 12.0, 3.0]);
let c = sub_m128_s(a, b).to_array();
assert_eq!(c, [-4.0, 2.0, 3.0, 4.0]);