Searched refs:div_n (Results 1 – 2 of 2) sorted by relevance
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_div.c | 271 int num_n, div_n, num_neg; in bn_div_fixed_top() local 303 div_n = sdiv->top; in bn_div_fixed_top() 306 if (num_n <= div_n) { in bn_div_fixed_top() 308 if (bn_wexpand(snum, div_n + 1) == NULL) in bn_div_fixed_top() 310 memset(&(snum->d[num_n]), 0, (div_n - num_n + 1) * sizeof(BN_ULONG)); in bn_div_fixed_top() 311 snum->top = num_n = div_n + 1; in bn_div_fixed_top() 314 loop = num_n - div_n; in bn_div_fixed_top() 323 d0 = sdiv->d[div_n - 1]; in bn_div_fixed_top() 324 d1 = (div_n == 1) ? 0 : sdiv->d[div_n - 2]; in bn_div_fixed_top() 336 if (!bn_wexpand(tmp, (div_n + 1))) in bn_div_fixed_top() [all …]
|
/freebsd/sys/dev/clk/rockchip/ |
H A D | rk_clk_fract.c | 205 uint64_t div_n, div_d, _fout; in rk_clk_fract_set_freq() local 209 clk_compute_fract_div(*fout, fin, 0xFFFF, 0xFFFF, &div_n, &div_d); in rk_clk_fract_set_freq() 210 _fout = fin * div_n; in rk_clk_fract_set_freq() 215 if (div_n > div_d && div_d > 1) in rk_clk_fract_set_freq() 216 div_n++; in rk_clk_fract_set_freq() 220 if (div_n > div_d && div_n > 1) in rk_clk_fract_set_freq() 221 div_n--; in rk_clk_fract_set_freq() 227 if (div_n > 0xFFFF || div_d > 0xFFFF) in rk_clk_fract_set_freq() 236 _fout = fin * div_n; in rk_clk_fract_set_freq() 247 sc->numerator = (uint32_t)div_n; in rk_clk_fract_set_freq()
|