mpq_cmp_z

Niels Möller nisse at lysator.liu.se
Thu Aug 27 07:06:21 UTC 2015


"Marco Bodrato" <bodrato at mail.dm.unipi.it> writes:

> At any point in mpq code (we check in the _init functions, and we ASSERT
> elsewhere) we assume denominator is strictly positive and mpz's are
> normalised.

And hence, in this case, PTR(den)[0] is not only readable, but it
always contains a meaningful value.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list