[RFC][PATCH] mini-gmp: move memory allocation out of loops

Niels Möller nisse at lysator.liu.se
Sun Mar 11 18:24:52 UTC 2018

"Marco Bodrato" <bodrato at mail.dm.unipi.it> writes:

>> On Sat, Feb 10, 2018 at 6:11 PM Niels Möller <nisse at lysator.liu.se> wrote:
>>> Maybe the below is a reasonable way (note that the #if:ed out
>>> mpn_div_qr_2 can't be easily supported with this interface).
> I think that static helper functions must be as simple and efficient as
> possible. They do not need to be flexible, if not needed by the exported
> function calling them.

I had almost forgotten about this, but committed now.


Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list