Lines Matching refs:w
235 void mpi_snatch(MPI w, MPI u) in mpi_snatch() argument
237 if (w) { in mpi_snatch()
238 mpi_assign_limb_space(w, u->d, u->alloced); in mpi_snatch()
239 w->nlimbs = u->nlimbs; in mpi_snatch()
240 w->sign = u->sign; in mpi_snatch()
241 w->flags = u->flags; in mpi_snatch()
250 MPI mpi_set(MPI w, MPI u) in mpi_set() argument
256 if (!w) in mpi_set()
257 w = mpi_alloc(mpi_get_nlimbs(u)); in mpi_set()
258 RESIZE_IF_NEEDED(w, usize); in mpi_set()
259 wp = w->d; in mpi_set()
262 w->nlimbs = usize; in mpi_set()
263 w->flags = u->flags; in mpi_set()
264 w->flags &= ~(16|32); /* Reset the immutable and constant flags. */ in mpi_set()
265 w->sign = usign; in mpi_set()
266 return w; in mpi_set()
270 MPI mpi_set_ui(MPI w, unsigned long u) in mpi_set_ui() argument
272 if (!w) in mpi_set_ui()
273 w = mpi_alloc(1); in mpi_set_ui()
277 RESIZE_IF_NEEDED(w, 1); in mpi_set_ui()
278 w->d[0] = u; in mpi_set_ui()
279 w->nlimbs = u ? 1 : 0; in mpi_set_ui()
280 w->sign = 0; in mpi_set_ui()
281 w->flags = 0; in mpi_set_ui()
282 return w; in mpi_set_ui()
288 MPI w = mpi_alloc(1); in mpi_alloc_set_ui() local
289 w->d[0] = u; in mpi_alloc_set_ui()
290 w->nlimbs = u ? 1 : 0; in mpi_alloc_set_ui()
291 w->sign = 0; in mpi_alloc_set_ui()
292 return w; in mpi_alloc_set_ui()