Lines Matching +full:long +full:- +full:term
1 // SPDX-License-Identifier: GPL-2.0
24 * (1 << 8) - 1, (1 << 5) - 1, &n, &d);
34 unsigned long given_numerator, unsigned long given_denominator, in rational_best_approximation()
35 unsigned long max_numerator, unsigned long max_denominator, in rational_best_approximation()
36 unsigned long *best_numerator, unsigned long *best_denominator) in rational_best_approximation()
47 * a is current term of the continued fraction. in rational_best_approximation()
49 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation()
56 unsigned long dp, a; in rational_best_approximation()
60 /* Find next term in continued fraction, 'a', via in rational_best_approximation()
69 * convergent), n2/d2, using the term just found and in rational_best_approximation()
77 * largest semi-convergent, the final term of which is in rational_best_approximation()
81 unsigned long t = min((max_numerator - n0) / n1, in rational_best_approximation()
82 (max_denominator - d0) / d1); in rational_best_approximation()
84 /* This tests if the semi-convergent is closer in rational_best_approximation()