Typo in the manual, and clarification for mpn_gcd
Max Horn
max at quendi.de
Sun Jan 1 21:43:20 UTC 2017
PS: One more thing:
> On 01 Jan 2017, at 21:59, Max Horn <max at quendi.de> wrote:
>
> 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>.
In addition, I also discovered this comment inside the mpz_gcd code:
/* Call mpn_gcd. The 2nd argument must not have more bits than the 1st. */
This, too, does not seem to be mentioned in the mpn_gcd documentation.
Best wishes,
Max
More information about the gmp-bugs
mailing list