Home
last modified time | relevance | path

Searched refs:d_cur (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/dev/clk/rockchip/
H A Drk_clk_fract.c94 uint64_t n_cur, d_cur; /* current convergents */ in clk_compute_fract_div() local
106 d_cur = 0; in clk_compute_fract_div()
108 while (d_rem != 0 && n_cur < n_max && d_cur < d_max) { in clk_compute_fract_div()
123 tmp = d_prev + fact * d_cur; in clk_compute_fract_div()
124 d_prev = d_cur; in clk_compute_fract_div()
125 d_cur = tmp; in clk_compute_fract_div()
128 if (n_cur > n_max || d_cur > d_max) { in clk_compute_fract_div()
133 *d_out = d_cur; in clk_compute_fract_div()