Lines Matching refs:snum
224 BIGNUM *snum = BN_CTX_get(ctx); in BN_div() local
244 if (!BN_lshift(snum, numerator, norm_shift)) { in BN_div()
247 bn_set_minimal_width(snum); in BN_div()
248 snum->neg = 0; in BN_div()
253 if (snum->width <= sdiv->width + 1) { in BN_div()
254 if (!bn_wexpand(snum, sdiv->width + 2)) { in BN_div()
257 for (int i = snum->width; i < sdiv->width + 2; i++) { in BN_div()
258 snum->d[i] = 0; in BN_div()
260 snum->width = sdiv->width + 2; in BN_div()
262 if (!bn_wexpand(snum, snum->width + 1)) { in BN_div()
265 snum->d[snum->width] = 0; in BN_div()
266 snum->width++; in BN_div()
270 num_n = snum->width; in BN_div()
276 wnum.d = &(snum->d[loop]); in BN_div()
279 wnum.dmax = snum->dmax - loop; // so we don't step out of bounds in BN_div()
287 wnump = &(snum->d[num_n - 1]); in BN_div()
380 bn_set_minimal_width(snum); in BN_div()
386 if (!BN_rshift(rem, snum, norm_shift)) { in BN_div()