mpq_cmp actual return values?

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


Hello,
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?

Cheers,
didier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20060313/0e602b53/attachment.html


More information about the gmp-discuss mailing list