Lines Matching refs:rem
17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
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
29 if (rem == divisor) { in mpi_fdiv_r()
34 mpi_tdiv_r(rem, dividend, divisor); in mpi_fdiv_r()
36 if (((divisor_sign?1:0) ^ (dividend->sign?1:0)) && rem->nlimbs) in mpi_fdiv_r()
37 mpi_add(rem, rem, divisor); in mpi_fdiv_r()
50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr() argument
55 if (quot == divisor || rem == divisor) { in mpi_fdiv_qr()
60 mpi_tdiv_qr(quot, rem, dividend, divisor); in mpi_fdiv_qr()
62 if ((divisor_sign ^ dividend->sign) && rem->nlimbs) { in mpi_fdiv_qr()
64 mpi_add(rem, rem, divisor); in mpi_fdiv_qr()
78 void mpi_tdiv_r(MPI rem, MPI num, MPI den) in mpi_tdiv_r() argument
80 mpi_tdiv_qr(NULL, rem, num, den); in mpi_tdiv_r()
83 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr() argument
102 mpi_resize(rem, rsize); in mpi_tdiv_qr()
106 if (num != rem) { in mpi_tdiv_qr()
107 rem->nlimbs = num->nlimbs; in mpi_tdiv_qr()
108 rem->sign = num->sign; in mpi_tdiv_qr()
109 MPN_COPY(rem->d, num->d, nsize); in mpi_tdiv_qr()
127 rp = rem->d; in mpi_tdiv_qr()
142 rem->nlimbs = rsize; in mpi_tdiv_qr()
143 rem->sign = sign_remainder; in mpi_tdiv_qr()
228 rem->nlimbs = rsize; in mpi_tdiv_qr()
229 rem->sign = sign_remainder; in mpi_tdiv_qr()