mul vs sqr

Paul Zimmermann Paul.Zimmermann at
Tue Apr 20 12:37:38 CEST 2004

     Why is mpn_sqr_n not exported?

   We have tried to keep the set of exported mpn functions small, to
   allow for changes.  For the next major GMP release, the set of
   exported mpn functions will increase a lot, and some current
   non-exported functions will indeed change.

Thank you for your answer. Btw, I hope you didn't forget to export mpn_copy,
since the current best way to emulate it:

#define mpn_copy(a,b,n) mpn_add_1(a,b,n,0)

is somewhat overkill!


More information about the gmp-devel mailing list