Go to the first, previous, next, last section, table of contents.


Arithmetic Functions

Function: void mpz_add (mpz_t rop, mpz_t op1, mpz_t op2)
Function: void mpz_add_ui (mpz_t rop, mpz_t op1, unsigned long int op2)
@ifnottex Set rop to op1 + op2.

Function: void mpz_sub (mpz_t rop, mpz_t op1, mpz_t op2)
Function: void mpz_sub_ui (mpz_t rop, mpz_t op1, unsigned long int op2)
Set rop to op1 - op2.

Function: void mpz_mul (mpz_t rop, mpz_t op1, mpz_t op2)
Function: void mpz_mul_si (mpz_t rop, mpz_t op1, long int op2)
Function: void mpz_mul_ui (mpz_t rop, mpz_t op1, unsigned long int op2)
@ifnottex Set rop to op1 times op2.

Function: void mpz_addmul_ui (mpz_t rop, mpz_t op1, unsigned long int op2)
@ifnottex Add op1 times op2 to rop.

Function: void mpz_mul_2exp (mpz_t rop, mpz_t op1, unsigned long int op2)
@ifnottex Set rop to op1 times 2 raised to op2. This operation can also be defined as a left shift, op2 steps.

Function: void mpz_neg (mpz_t rop, mpz_t op)
Set rop to -op.

Function: void mpz_abs (mpz_t rop, mpz_t op)
Set rop to the absolute value of op.


Go to the first, previous, next, last section, table of contents.