fn quick_two_sum(a: f64, b: f64) -> (f64, f64)Examples found in repository?
crates/competitive/src/num/double_double.rs (line 15)
14 fn renormalize(a0: f64, a1: f64, a2: f64) -> Self {
15 let (s, t2) = quick_two_sum(a1, a2);
16 let (mut s, t1) = quick_two_sum(a0, s);
17 let mut b = (s, t1);
18 if t1 != 0. {
19 b.0 = s;
20 s = t1;
21 }
22 let (s, e) = quick_two_sum(s, t2);
23 if e != 0. {
24 if t1 != 0. {
25 b.1 = s;
26 } else {
27 b.0 = s;
28 }
29 }
30 Self(b.0, b.1)
31 }