Public mpn_divexact_1 (was: Re: Extending the mpn interface)

Niels Möller nisse at lysator.liu.se
Wed Feb 18 09:28:41 UTC 2015


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

> There ought to be more public mpn division functions.

To make any progress, we could start with the easy ones. I'm looking
into making mpn_divexact_1 public. I guess what it takes is only moving
the prototype from gmp-impl.h to gmp-h.in, and document it (including an
entry in NEWS).

But there's a scary comment in gmp-implh.h,

  #ifndef mpn_divexact_1  /* if not done with cpuvec in a fat binary */

So is there any special magic with fat binaries that needs to be changed
too? I don't see any obvious place in the code which defines this symbol
differently, e.g., as a cpuvec lookup.

Regards,
/Niels

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


More information about the gmp-devel mailing list