Lines Matching refs:d1
45 * n2/d2, n1/d1, and n0/d0 are our successively more accurate
51 unsigned long n, d, n0, d0, n1, d1, n2, d2;
54 n0 = d1 = 0;
75 d2 = d0 + a * d1;
85 if (d1)
86 t = (max_denominator - d0) / d1;
91 * convergent. If d1 is zero there is no previous convergent as this
94 if (!d1 || 2u * t > a || (2u * t == a && d0 * dp > d1 * d)) {
96 d1 = d0 + t * d1;
102 d0 = d1;
103 d1 = d2;
106 *best_denominator = d1;