On 3 May 2015 at 12:51, <20100.delecr...@gmail.com> wrote:
> Hello,
>
> I would like to know whether it it is possible to compare a mpz_t and a
> mpq_t more efficiently than:
> - creating a mpq_t with denominator 1
> - swap the numerator with the mpz_t
> - call mpq_cmp
> - swap back the numera
Hello,
I would like to know whether it it is possible to compare a mpz_t and a mpq_t
more efficiently than:
- creating a mpq_t with denominator 1
- swap the numerator with the mpz_t
- call mpq_cmp
- swap back the numerator with the mpz_t
- free the memory of the mpq_t
If not, would it be us