Lines Matching refs:msize
31 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local
42 msize = mod->nlimbs; in mpi_powm()
43 size = 2 * msize; in mpi_powm()
49 if (!msize) in mpi_powm()
55 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; in mpi_powm()
70 mp = mp_marker = mpi_alloc_limb_space(msize); in mpi_powm()
73 mod_shift_cnt = count_leading_zeros(mod->d[msize - 1]); in mpi_powm()
75 mpihelp_lshift(mp, mod->d, msize, mod_shift_cnt); in mpi_powm()
77 MPN_COPY(mp, mod->d, msize); in mpi_powm()
81 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ in mpi_powm()
90 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm()
91 bsize = msize; in mpi_powm()
137 mp = mp_marker = mpi_alloc_limb_space(msize); in mpi_powm()
140 MPN_COPY(mp, rp, msize); in mpi_powm()
155 xp = xp_marker = mpi_alloc_limb_space(2 * (msize + 1)); in mpi_powm()
204 if (xsize > msize) { in mpi_powm()
205 mpihelp_divrem(xp + msize, 0, xp, xsize, in mpi_powm()
206 mp, msize); in mpi_powm()
207 xsize = msize; in mpi_powm()
231 if (xsize > msize) { in mpi_powm()
232 mpihelp_divrem(xp + msize, 0, in mpi_powm()
234 msize); in mpi_powm()
235 xsize = msize; in mpi_powm()
274 if (rsize >= msize) { in mpi_powm()
275 mpihelp_divrem(rp + msize, 0, rp, rsize, mp, msize); in mpi_powm()
276 rsize = msize; in mpi_powm()
287 mpihelp_rshift(mp, mp, msize, mod_shift_cnt); in mpi_powm()
288 mpihelp_sub(rp, mp, msize, rp, rsize); in mpi_powm()
289 rsize = msize; in mpi_powm()