Lines Matching defs:wnum
194 BIGNUM *tmp, wnum, *snum, *sdiv, *res;
290 wnum.neg = 0;
291 wnum.d = &(snum->d[loop]);
292 wnum.top = div_n;
296 wnum.dmax = snum->dmax - loop; /* so we don't step out of bounds */
318 if (BN_ucmp(&wnum, sdiv) >= 0) {
324 bn_clear_top2max(&wnum);
325 bn_sub_words(wnum.d, wnum.d, sdiv->d, div_n);
344 * to calculate a BN_ULONG q such that | wnum - sdiv * q | < sdiv
434 wnum.d--;
439 if (bn_sub_words(wnum.d, wnum.d, tmp->d, div_n + 1)) {
442 * the calculation of q, sdiv * q might be greater than wnum (but
443 * then (q-1) * sdiv is less or equal than wnum)
446 if (bn_add_words(wnum.d, wnum.d, sdiv->d, div_n))