Lines Matching full:divisor
18 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor);
20 void mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_r() argument
22 int divisor_sign = divisor->sign; in mpi_fdiv_r()
25 /* We need the original value of the divisor after the remainder has been in mpi_fdiv_r()
29 if (rem == divisor) { in mpi_fdiv_r()
30 temp_divisor = mpi_copy(divisor); in mpi_fdiv_r()
31 divisor = temp_divisor; in mpi_fdiv_r()
34 mpi_tdiv_r(rem, dividend, divisor); in mpi_fdiv_r()
37 mpi_add(rem, rem, divisor); in mpi_fdiv_r()
43 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor) in mpi_fdiv_q() argument
46 mpi_fdiv_qr(quot, tmp, dividend, divisor); in mpi_fdiv_q()
50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr() argument
52 int divisor_sign = divisor->sign; in mpi_fdiv_qr()
55 if (quot == divisor || rem == divisor) { in mpi_fdiv_qr()
56 temp_divisor = mpi_copy(divisor); in mpi_fdiv_qr()
57 divisor = temp_divisor; in mpi_fdiv_qr()
60 mpi_tdiv_qr(quot, rem, dividend, divisor); in mpi_fdiv_qr()
64 mpi_add(rem, rem, divisor); in mpi_fdiv_qr()
129 /* Optimize division by a single-limb divisor. */ in mpi_tdiv_qr()