Function fused_mul_neg_add_m256d
pub fn fused_mul_neg_add_m256d(a: m256d, b: m256d, c: m256d) -> m256d
Available on crate feature
dep_safe_arch
only.Expand description
Lanewise fused -(a * b) + c
let a = m256d::from_array([1.0, 2.0, 3.0, 4.0]);
let b = m256d::from_array([5.0, 6.0, 7.0, 8.0]);
let c = m256d::from_array([1.0, 1.0, 1.0, 1.0]);
let d = fused_mul_neg_add_m256d(a, b, c).to_array();
assert_eq!(d, [-4.0, -11.0, -20.0, -31.0]);
- Intrinsic:
_mm256_fnmadd_pd
- Assembly: one of
vfnmadd132pd ymm, ymm, ymm
vfnmadd213pd ymm, ymm, ymm
vfnmadd231pd ymm, ymm, ymm