Previous: Extra Rational Number Functions, Up: Extra Number Functions [Index]
Set the value of the signed integer Z to 0
, +1
and -1
,
respectively.
These utility functions are implemented as plain macros (with self-explanatory names).
Return 1
(read true)
if the signed integer Z
is either zero, nonzero, positive, negative, strictly positive or strictly negative,
respectively,
and
0
(read false)
otherwise.
These test functions are plain macro functions (with self-explanatory names).
Return +1
if the signed integer op is strictly positive,
0
if it is zero,
or -1
if it is strictly negative.
While its counterpart mpz_sgn
is implemented as a macro,
this function is implemented as an inline function:
it evaluates its argument only once.
Set the value of rop to the minimum of the triplet {abs(op1),abs(op2),abs(op3)}.