Lines Matching refs:numerator
195 int BN_div(BIGNUM *quotient, BIGNUM *rem, const BIGNUM *numerator, in BN_div() argument
209 int numerator_width = bn_minimal_width(numerator); in BN_div()
211 if ((numerator_width > 0 && numerator->d[numerator_width - 1] == 0) || in BN_div()
244 if (!BN_lshift(snum, numerator, norm_shift)) { in BN_div()
290 res->neg = (numerator->neg ^ divisor->neg); in BN_div()
385 int neg = numerator->neg; in BN_div()
460 const BIGNUM *numerator, const BIGNUM *divisor, in bn_div_consttime() argument
462 if (BN_is_negative(numerator) || BN_is_negative(divisor)) { in bn_div_consttime()
478 if (quotient == NULL || quotient == numerator || quotient == divisor) { in bn_div_consttime()
481 if (remainder == NULL || remainder == numerator || remainder == divisor) { in bn_div_consttime()
486 !bn_wexpand(q, numerator->width) || in bn_div_consttime()
492 OPENSSL_memset(q->d, 0, numerator->width * sizeof(BN_ULONG)); in bn_div_consttime()
493 q->width = numerator->width; in bn_div_consttime()
502 for (int i = numerator->width - 1; i >= 0; i--) { in bn_div_consttime()
508 r->d[0] |= (numerator->d[i] >> bit) & 1; in bn_div_consttime()