Lines Matching refs:rem
67 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
84 if (rem != NULL)
85 { if (BN_copy(rem,m) == NULL) return(0); }
93 if (rem == NULL) rem = BN_CTX_get(ctx);
94 if (D == NULL || dv == NULL || rem == NULL)
100 if (BN_copy(rem,m) == NULL) goto end;
112 if (BN_ucmp(rem,D) >= 0)
115 if (!BN_usub(rem,rem,D)) goto end;
120 rem->neg=BN_is_zero(rem)?0:m->neg;
148 : "=a"(q), "=d"(rem) \
163 : "=a"(q), "=d"(rem) \
325 BN_ULONG n0,n1,rem=0; in BN_div() local
352 rem=(n1-q*d0)&BN_MASK2; in BN_div()
358 if (t2 <= ((((BN_ULLONG)rem)<<BN_BITS2)|wnump[-2])) in BN_div()
361 rem += d0; in BN_div()
362 if (rem < d0) break; /* don't let rem overflow */ in BN_div()
375 rem=(n1-q*d0)&BN_MASK2; in BN_div()
394 if ((t2h < rem) || in BN_div()
395 ((t2h == rem) && (t2l <= wnump[-2]))) in BN_div()
398 rem += d0; in BN_div()
399 if (rem < d0) break; /* don't let rem overflow */ in BN_div()