mpz_gcdext bug in mini-gmp

Niels Möller nisse at lysator.liu.se
Mon Mar 23 15:28:15 UTC 2020


tg at gmplib.org (Torbjörn Granlund) writes:

> (I am not sure why MiniGMP uses the same internal field names as the
> full GMP.  Perhaps it should use different names to discourage
> non-complying code?)

I think the definition of mpz_t and struct __mpz_struct were simply
copied verbatim. Renaming fields and dropping leading underscores in
mini-gmp might make sense. But keeping them the same makes it easier to
copy code between gmp and mini-gmp, which also has benefits.

Regards,
/Niels

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


More information about the gmp-bugs mailing list