Lines Matching refs:rsize
31 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local
145 rsize = bsize; in mpi_powm()
182 if (rsize < KARATSUBA_THRESHOLD) in mpi_powm()
183 mpih_sqr_n_basecase(xp, rp, rsize); in mpi_powm()
186 tsize = 2 * rsize; in mpi_powm()
191 } else if (tsize < (2 * rsize)) { in mpi_powm()
193 tsize = 2 * rsize; in mpi_powm()
199 mpih_sqr_n(xp, rp, rsize, tspace); in mpi_powm()
202 xsize = 2 * rsize; in mpi_powm()
210 rsize = xsize; in mpi_powm()
217 (xp, rp, rsize, bp, bsize, in mpi_powm()
222 (xp, rp, rsize, bp, bsize, in mpi_powm()
227 xsize = rsize + bsize; in mpi_powm()
236 rsize = xsize; in mpi_powm()
258 mpihelp_lshift(res->d, rp, rsize, mod_shift_cnt); in mpi_powm()
261 rp[rsize] = carry_limb; in mpi_powm()
262 rsize++; in mpi_powm()
265 MPN_COPY(res->d, rp, rsize); in mpi_powm()
269 if (rsize >= msize) { in mpi_powm()
270 mpihelp_divrem(rp + msize, 0, rp, rsize, mp, msize); in mpi_powm()
271 rsize = msize; in mpi_powm()
276 mpihelp_rshift(rp, rp, rsize, mod_shift_cnt); in mpi_powm()
277 MPN_NORMALIZE(rp, rsize); in mpi_powm()
280 if (negative_result && rsize) { in mpi_powm()
283 mpihelp_sub(rp, mp, msize, rp, rsize); in mpi_powm()
284 rsize = msize; in mpi_powm()
286 MPN_NORMALIZE(rp, rsize); in mpi_powm()
288 res->nlimbs = rsize; in mpi_powm()