Home | History | Annotate | Download | only in bn

Lines Matching refs:snum

220   BIGNUM *snum = BN_CTX_get(ctx);
239 if (!BN_lshift(snum, numerator, norm_shift)) {
242 snum->neg = 0;
244 // Since we don't want to have special-case logic for the case where snum is
245 // larger than sdiv, we pad snum with enough zeroes without changing its
247 if (snum->top <= sdiv->top + 1) {
248 if (!bn_wexpand(snum, sdiv->top + 2)) {
251 for (int i = snum->top; i < sdiv->top + 2; i++) {
252 snum->d[i] = 0;
254 snum->top = sdiv->top + 2;
256 if (!bn_wexpand(snum, snum->top + 1)) {
259 snum->d[snum->top] = 0;
260 snum->top++;
264 num_n = snum->top;
266 // Lets setup a 'window' into snum
270 wnum.d = &(snum->d[loop]);
273 wnum.dmax = snum->dmax - loop; // so we don't step out of bounds
280 // pointer to the 'top' of snum
281 wnump = &(snum->d[num_n - 1]);
306 // the first part of the loop uses the top two words of snum and sdiv to
374 bn_correct_top(snum);
380 if (!BN_rshift(rem, snum, norm_shift)) {