bodrato at mail.dm.unipi.it
Wed Sep 2 05:44:32 UTC 2015
Il Sab, 15 Agosto 2015 12:37 pm, Vincent Delecroix ha scritto:
> Dear all,
> I am new to this list. I am a regular developer of the SageMath project
>  in which we use mpz_t and mpq_t as our based type for integers and
> rationals. We often have to compare integers with rationals and I came
> to the conclusion that it would be convenient to have a GMP function
> int mpq_cmp_z(mpq_t, mpz_t)
We now have this function in our repository:
It shares most of the code with the already existing mpq_cmp function. If
you have the possibility to test if it fits your needs (both on the speed
side and for the interface) we will be happy to know.
I hope its name will not be changed before the official release, but be
warned, it is not official yet.
PS: I'm not very happy for the testing code... too general to finely
explore the corner cases for the size-based branches...
More information about the gmp-devel