next up previous
Next: Comparison Functions Up: mpffn class functions Previous: Assignment Functions

Arithmetic Functions

void mpffn_add(mp_ptr r, mp_srcptr x, mp_srcptr y, const mpffn_field *ff)
Set r to x + y in ff.
void mpffn_add_ui(mp_ptr r, mp_srcptr x, unsigned long y, const mpffn_field *ff)
Set r to x + y in ff. 0 $ \leq$ y < p must hold.
void mpffn_div(mp_ptr r, mp_srcptr x, mp_srcptr y, const mpffn_field *ff)
Set r to x/y in ff.
void mpffn_inv(mp_ptr r, mp_srcptr x, const mpffn_field *ff)
Set r to x-1 in ff.
void mpffn_mul(mp_ptr r, mp_srcptr x, mp_srcptr y, const mpffn_field *ff)
Set r to xy in ff.
void mpffn_mul_mpn(mp_ptr r, mp_srcptr x, mp_srcptr y, const mpffn_field *ff)
Set r to x×{y,ff->size_p} in ff, where {y,ff->size_p} is understood as a mpn operand.
void mpffn_mul_ui(mp_ptr r, mp_srcptr x, unsigned long int y, const mpffn_field *ff)
void mpffn_mul_z(mp_ptr r, mp_srcptr x, mpz_t y, const mpffn_field *ff)
Set r to xy in ff.
void mpffn_neg(mp_ptr r, mp_srcptr x, const mpffn_field *ff)
Set r to - x in ff.
void mpffn_pow_ui(mp_ptr r, mp_srcptr x, mp_limb_t y, const mpffn_field *ff)
Set r to xy.
void mpffn_sub(mp_ptr r, mp_srcptr x, mp_srcptr y, const mpffn_field *ff)
Set r to x - y in ff.
void mpffn_sub_ui(mp_ptr r, mp_srcptr x, unsigned long y, const mpffn_field *ff)
Set r to x - y in ff. 0 $ \leq$ y < p must hold.

Bill Allombert 2003-07-01