Lines Matching refs:div_n
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()
422 l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q); in bn_div_fixed_top()
423 tmp->d[div_n] = l0; in bn_div_fixed_top()
429 l0 = bn_sub_words(wnum, wnum, tmp->d, div_n + 1); in bn_div_fixed_top()
436 for (l0 = 0 - l0, j = 0; j < div_n; j++) in bn_div_fixed_top()
438 l0 = bn_add_words(wnum, wnum, tmp->d, div_n); in bn_div_fixed_top()
447 snum->top = div_n; in bn_div_fixed_top()