mini-gmp and mpq

Marc Glisse marc.glisse at
Wed Feb 28 20:20:46 UTC 2018

On Wed, 28 Feb 2018, Marco Bodrato wrote:

>> Something like that, yes. But it feels like this is duplicating
>> functionality that should be elsewhere... Bah, I am probably too picky for
>> so few lines, feel free to go ahead and commit your patch (I don't
> Pushed it.
>> remember if any of the tests do q+1).
> I hope I added them with another patch:

Yes, I think that works.

> In the meanwhile I also pushed some small shortcuts for __gmp_binary_equal
> applied to mpq and integers:

Thanks, that's a good idea. If we wanted to, we could also specialize the 
test q == 0 (and q < 0), which is probably common enough, but that's 
independent, and a negligible gain.

Marc Glisse

More information about the gmp-devel mailing list