Torbjörn Granlund tg at gmplib.org
Tue Sep 17 13:56:52 UTC 2019

nisse at lysator.liu.se (Niels Möller) writes:

  Ooops. Now it should be in.

What are the specs for div2?

Surely n1 > 0 and d1 > 0.
Also N >= D?

Does the new div2 always compute the "accurate" quotient,
i.e., with the remainder R < D?

I'm asking as I believe strongly in unit testing of these types of
non-trivial idioms.  :-)

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list