Lines Matching refs:rem
17 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
32 if (rem != NULL) {
33 if (BN_copy(rem, m) == NULL)
45 if (rem == NULL)
46 rem = BN_CTX_get(ctx);
47 if (D == NULL || dv == NULL || rem == NULL)
54 if (BN_copy(rem, m) == NULL)
71 if (BN_ucmp(rem, D) >= 0) {
73 if (!BN_usub(rem, rem, D))
80 rem->neg = BN_is_zero(rem) ? 0 : m->neg;
177 : "=a"(q), "=d"(rem) \
191 : "=a"(q), "=d"(rem) \
348 BN_ULONG n0, n1, rem = 0; in bn_div_fixed_top() local
370 rem = (n1 - q * d0) & BN_MASK2; in bn_div_fixed_top()
375 if (t2 <= ((((BN_ULLONG) rem) << BN_BITS2) | n2)) in bn_div_fixed_top()
378 rem += d0; in bn_div_fixed_top()
379 if (rem < d0) in bn_div_fixed_top()
388 rem = (n1 - q * d0) & BN_MASK2; in bn_div_fixed_top()
408 if ((t2h < rem) || ((t2h == rem) && (t2l <= n2))) in bn_div_fixed_top()
411 rem += d0; in bn_div_fixed_top()
412 if (rem < d0) in bn_div_fixed_top()