Public mpn_add_nc

Niels Möller nisse at
Sun Mar 3 21:19:37 CET 2013

Torbjorn Granlund <tg at> writes:

> nisse at (Niels Möller) writes:
>   As I understand it, that plan would imply that for assembly files
>   currently providing both _n and _nc, the _n entry point gets obsolete
> That was not the idea, at least not for internal calls.  It sometimes
> have a cycle or two overhead.

Ok, so we have a

  #define mpn_add_n(rp,ap,bp,n) mpn_add_nc ((rp),(ap),(bp),(n),0)

in gmp.h, and in gmp-impl.h, we put something like

  #if HAVE_NATIVE_mpn_add_n
  #undef mpn_add_n
  #define mpn_add_n __gmpn_add_n

Should work fine, I guess.


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