mpq_cmp_z

Niels Möller nisse at lysator.liu.se
Wed Aug 26 15:55:48 UTC 2015


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

> My idea is to check if the den{ominator} is one by checking this condition:
>
> (SIZ(den) | PTR(den)[0]) == 1

I think it is correct, assuming that at this point in the code it is
known that SIZ(den) != 0 (and that den is normalized, so that SIZ(den)
== 1 implies that PTR(den)[0] != 0).

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