[−][src]Function safe_arch::add_horizontal_m256d
#[must_use]pub fn add_horizontal_m256d(a: m256d, b: m256d) -> m256d
This is supported with target feature
avx
only.Add adjacent f64
lanes.
let a = m256d::from([1.0, 2.0, 3.0, 4.0]); let b = m256d::from([1.0, 3.0, 5.0, 7.0]); let c = add_horizontal_m256d(a, b).to_array(); assert_eq!(c, [3.0, 4.0, 7.0, 12.0]);