Torbjörn Granlund tg at gmplib.org
Thu Jan 23 17:28:52 UTC 2020

nisse at lysator.liu.se (Niels Möller) writes:

  Replying to myself...

Best answers that way!  :-)

  > Into gmp-impl.h, or its own file? In the latter case, what's a good name
  > and location?

  What about mpn/generic/hgcd2-div.h? 

Sounds OK.

  > How to deal with the tables (used for method 4 and 5)? We could keep the
  > static declaration (at least if we use a separate include file for
  > this), and then we'd get separate copies for each compilation unit
  > including it.

  I'm leaning towards keeping static for now. Tables aren't that big, and
  most archs don't use them anyway.

You could hide them #if HAVE_HIDDEN_ALIAS to speed up access (for

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list