Typo in the manual, and clarification for mpn_gcd

Max Horn max at quendi.de
Sun Jan 1 20:59:53 UTC 2017


Hi there,

I'd like to report two minor issues in the GMP 6.1.2 manual:

(1) In section 15.1.5 "Higher degree Toom’n’half" there is a typo: "equanl" should be "equal".
(Also, I never heard the expression "four-plets" -- perhaps "quadruplets" are meant?

(2) I tried using mpn_gcd in some code (sadly, in that code I can only use the mpn_ functions, as memory allocations are a no-go). After some failures, I looked at the code, and saw these comments:

mpn/generic/gcd.c:1:/* mpn/gcd.c: mpn_gcd for gcd of two odd integers.
mpn/generic/gcd.c:283:  /* Due to the calling convention for mpn_gcd, at most one can be

However, the documentation for mpn_gcd does not actually state this requirement, see <https://gmplib.org/manual/Low_002dlevel-Functions.html#index-mpn_005fgcd>.

It would be very nice if this could be clarified in the documentation.


Thank you very much,
Max


More information about the gmp-bugs mailing list