Organization of multiplication functions

Mark Sofroniou marks at wolfram.com
Fri Sep 19 15:57:04 CEST 2003


Torbjorn Granlund wrote:

>Mark Sofroniou <marks at wolfram.com> writes:
>
>  Shouldn't it be mpn_mul_n that calls mpn_sqr_n rather than
>  mpn_mul?
>  
>The thinking behind the current design is that mpn callers
>usually know if they are squaring and can short-circuit this
>themselves.
>
>For small operations, this cuts down overhead.
>  
>
Fair enough. Are there any plans to officially document mpn_sqr_n,
(and have it callable e.g. through a dynamic library) or is it considered
an internal library function, so the preferred interface is intended to stay
as mpn_mul?

Thanks, Mark




More information about the gmp-devel mailing list