Lines Matching full:w
18 * result in W. U and V may be the same.
20 void mpi_add_ui(MPI w, MPI u, unsigned long v) in mpi_add_ui() argument
30 /* If not space for W (and possible carry), increase space. */ in mpi_add_ui()
32 if (w->alloced < wsize) in mpi_add_ui()
33 mpi_resize(w, wsize); in mpi_add_ui()
35 /* These must be after realloc (U may be the same as W). */ in mpi_add_ui()
37 wp = w->d; in mpi_add_ui()
62 w->nlimbs = wsize; in mpi_add_ui()
63 w->sign = wsign; in mpi_add_ui()
67 void mpi_add(MPI w, MPI u, MPI v) in mpi_add() argument
79 RESIZE_IF_NEEDED(w, wsize); in mpi_add()
80 /* These must be after realloc (u or v may be the same as w). */ in mpi_add()
89 RESIZE_IF_NEEDED(w, wsize); in mpi_add()
90 /* These must be after realloc (u or v may be the same as w). */ in mpi_add()
94 wp = w->d; in mpi_add()
129 w->nlimbs = wsize; in mpi_add()
130 w->sign = wsign; in mpi_add()
134 void mpi_sub(MPI w, MPI u, MPI v) in mpi_sub() argument
138 mpi_add(w, u, vv); in mpi_sub()
143 void mpi_addm(MPI w, MPI u, MPI v, MPI m) in mpi_addm() argument
145 mpi_add(w, u, v); in mpi_addm()
146 mpi_mod(w, w, m); in mpi_addm()
150 void mpi_subm(MPI w, MPI u, MPI v, MPI m) in mpi_subm() argument
152 mpi_sub(w, u, v); in mpi_subm()
153 mpi_mod(w, w, m); in mpi_subm()