Compare op1 and op2. Return a positive value if op1 > op2, zero if op1 = op2, or a negative value if op1 < op2.
mpz_cmp_ui
andmpz_cmp_si
are macros and will evaluate their arguments more than once.mpz_cmp_d
can be called with an infinity, but results are undefined for a NaN.
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).
mpz_cmpabs_d
can be called with an infinity, but results are undefined for a NaN.