mpq_cmp actual return values?

didier deshommes dfdeshom at
Mon Mar 13 03:23:19 CET 2006

According to the GMP docs, mpq_cmp():
"Compare op1 and op2. Return a positive value if op1 > op2, zero if op1 =
op2, and a
negative value if op1 < op2.
Does anyone know about what this return value actually is? On my machine
(pentium M),
* op1 > op2 always returns 1
* op1 == op2 always returns 0
* op1 < op2 always returns -1
Is this conventional or architecture-dependent?

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the gmp-discuss mailing list