[−][src]Function safe_arch::sub_horizontal_m128d
#[must_use]pub fn sub_horizontal_m128d(a: m128d, b: m128d) -> m128d
This is supported with target feature
sse3
only.Subtract each lane horizontally, pack the outputs as a
then b
.
let a = m128d::from_array([10.0, 50.0]); let b = m128d::from_array([100.0, 500.0]); let c = sub_horizontal_m128d(a, b).to_array(); assert_eq!(c, [-40.0, -400.0]);