Lines Matching defs:snum
268 BIGNUM *tmp, *snum, *sdiv, *res;
283 snum = BN_CTX_get(ctx);
300 if (!(bn_lshift_fixed_top(snum, num, norm_shift)))
304 num_n = snum->top;
308 if (bn_wexpand(snum, div_n + 1) == NULL)
310 memset(&(snum->d[num_n]), 0, (div_n - num_n + 1) * sizeof(BN_ULONG));
311 snum->top = num_n = div_n + 1;
316 * Lets setup a 'window' into snum This is the part that corresponds to
319 wnum = &(snum->d[loop]);
320 wnumtop = &(snum->d[num_n - 1]);
342 * the first part of the loop uses the top two words of snum and sdiv
445 /* snum holds remainder, it's as wide as divisor */
446 snum->neg = num_neg;
447 snum->top = div_n;
448 snum->flags |= BN_FLG_FIXED_TOP;
450 if (rm != NULL && bn_rshift_fixed_top(rm, snum, norm_shift) == 0)