Lines Matching defs:rm
182 * zero, and sets up rm such that dv*divisor + rm = num holds.
185 * rm->neg == num->neg (unless the remainder is zero)
186 * If 'dv' or 'rm' is NULL, the respective value is not returned.
188 static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
190 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
213 return BN_div_no_branch(dv, rm, num, divisor, ctx);
217 bn_check_top(rm);
229 if (rm != NULL) {
230 if (BN_copy(rm, num) == NULL)
429 if (rm != NULL) {
431 * Keep a copy of the neg flag in num because if rm==num BN_rshift()
435 BN_rshift(rm, snum, norm_shift);
436 if (!BN_is_zero(rm))
437 rm->neg = neg;
438 bn_check_top(rm);
443 bn_check_top(rm);
452 static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
462 bn_check_top(rm);
671 if (rm != NULL) {
673 * Keep a copy of the neg flag in num because if rm==num BN_rshift()
677 BN_rshift(rm, snum, norm_shift);
678 if (!BN_is_zero(rm))
679 rm->neg = neg;
680 bn_check_top(rm);
686 bn_check_top(rm);