next up previous
Next: Combined Initialization and Assignment Up: mpff class functions Previous: Initialization Functions

Assignment Functions

void mpff_set(mpff_t r, mpff_t x)
void mpff_set_ui(mpff_t r, unsigned long int x)
Set r to x.
void mpff_set_z(mpff_t r, mpz_t x)
Set r to the finite field element defined by P. Currently x must be equal to P(2e) where e=mpz_size(p)*mp_bits_per_limb.
void mpff_unpack_z(mpff_t r, mpz_t x, mp_size_t e)
Set r to the finite field element defined by P, where P is defined by P(2e) = x and P has coefficients between 0 and 2e - 1.

Bill Allombert 2003-07-01