Public mpn_add_nc

Niels Möller nisse at lysator.liu.se
Sun Mar 3 21:19:37 CET 2013


Torbjorn Granlund <tg at gmplib.org> writes:

> nisse at lysator.liu.se (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
  #endif

Should work fine, I guess.

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