Copyright (C) 2000-2012 |
GNU Info (gmp.info)Integer ComparisonsComparison Functions ==================== - Function: int mpz_cmp (mpz_t OP1, mpz_t OP2) - Function: int mpz_cmp_d (mpz_t OP1, double OP2) - Macro: int mpz_cmp_si (mpz_t OP1, signed long int OP2) - Macro: int mpz_cmp_ui (mpz_t OP1, unsigned long int OP2) Compare OP1 and OP2. Return a positive value if OP1 > OP2, zero if OP1 = OP2, or a negative value if OP1 < OP2. Note that `mpz_cmp_ui' and `mpz_cmp_si' are macros and will evaluate their arguments more than once. - Function: int mpz_cmpabs (mpz_t OP1, mpz_t OP2) - Function: int mpz_cmpabs_d (mpz_t OP1, double OP2) - Function: int mpz_cmpabs_ui (mpz_t OP1, unsigned long int OP2) Compare the absolute values of OP1 and OP2. Return a positive value if abs(OP1) > abs(OP2), zero if abs(OP1) = abs(OP2), or a negative value if abs(OP1) < abs(OP2). Note that `mpz_cmpabs_si' is a macro and will evaluate its arguments more than once. - Macro: int mpz_sgn (mpz_t OP) Return +1 if OP > 0, 0 if OP = 0, and -1 if OP < 0. This function is actually implemented as a macro. It evaluates its argument multiple times. automatically generated by info2www version 1.2.2.9 |