Lines Matching defs:rm
173 * zero, and sets up rm such that dv*divisor + rm = num holds.
176 * rm->neg == num->neg (unless the remainder is zero)
177 * If 'dv' or 'rm' is NULL, the respective value is not returned.
179 static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
181 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
203 return BN_div_no_branch(dv, rm, num, divisor, ctx);
207 bn_check_top(rm);
219 if (rm != NULL)
220 { if (BN_copy(rm,num) == NULL) return(0); }
403 if (rm != NULL)
405 /* Keep a copy of the neg flag in num because if rm==num
409 BN_rshift(rm,snum,norm_shift);
410 if (!BN_is_zero(rm))
411 rm->neg = neg;
412 bn_check_top(rm);
417 bn_check_top(rm);
426 static int BN_div_no_branch(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num,
436 bn_check_top(rm);
630 if (rm != NULL)
632 /* Keep a copy of the neg flag in num because if rm==num
636 BN_rshift(rm,snum,norm_shift);
637 if (!BN_is_zero(rm))
638 rm->neg = neg;
639 bn_check_top(rm);
645 bn_check_top(rm);