Re: [mpir-devel] comparison between mpz and mpq

2015-05-03 Thread Bill Hart
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

[mpir-devel] comparison between mpz and mpq

2015-05-03 Thread 20100 . delecroix
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