Lines Matching refs:msize
44 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local
55 msize = mod->nlimbs; in mpi_powm()
56 size = 2 * msize; in mpi_powm()
62 if (!msize) in mpi_powm()
68 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; in mpi_powm()
83 mp = mp_marker = mpi_alloc_limb_space(msize); in mpi_powm()
86 mod_shift_cnt = count_leading_zeros(mod->d[msize - 1]); in mpi_powm()
88 mpihelp_lshift(mp, mod->d, msize, mod_shift_cnt); in mpi_powm()
90 MPN_COPY(mp, mod->d, msize); in mpi_powm()
94 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ in mpi_powm()
103 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm()
104 bsize = msize; in mpi_powm()
150 mp = mp_marker = mpi_alloc_limb_space(msize); in mpi_powm()
153 MPN_COPY(mp, rp, msize); in mpi_powm()
168 xp = xp_marker = mpi_alloc_limb_space(2 * (msize + 1)); in mpi_powm()
217 if (xsize > msize) { in mpi_powm()
218 mpihelp_divrem(xp + msize, 0, xp, xsize, in mpi_powm()
219 mp, msize); in mpi_powm()
220 xsize = msize; in mpi_powm()
244 if (xsize > msize) { in mpi_powm()
245 mpihelp_divrem(xp + msize, 0, in mpi_powm()
247 msize); in mpi_powm()
248 xsize = msize; in mpi_powm()
287 if (rsize >= msize) { in mpi_powm()
288 mpihelp_divrem(rp + msize, 0, rp, rsize, mp, msize); in mpi_powm()
289 rsize = msize; in mpi_powm()
300 mpihelp_rshift(mp, mp, msize, mod_shift_cnt); in mpi_powm()
301 mpihelp_sub(rp, mp, msize, rp, rsize); in mpi_powm()
302 rsize = msize; in mpi_powm()