Skip to main content

two_prod

Function two_prod 

Source
pub fn two_prod(a: f64, b: f64) -> (f64, f64)
Expand description

(p, e) with p = fl(a · b) and p + e = a · b exactly, by one fused multiply-add. Exact when a b = 0 or |a b| ≥ 2⁻⁹⁶⁹ and p does not overflow; otherwise |a b − (p + e)| ≤ η.