mpz_gcdext bug in mini-gmp

Torbjörn Granlund tg at gmplib.org
Mon Mar 23 13:35:14 UTC 2020


Syed Jafri <syedjafri97 at gmail.com> writes:

  Thank you for your help, I used the set macros and it works perfectly.

We appreciate that you follow up with this all-is-fine message!

  The initial point of confusion for me was that the exact same code
  worked in gmp but not mini-gmp.

The two might interpret the fields somewhat differently.  Only the
documented interfaces are designed to work the same.

(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?)

[My apology to the reporter for receiving two copies if this reply.]

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list