Organization of multiplication functions

Torbjorn Granlund tege at
Fri Sep 19 15:52:06 CEST 2003

Mark Sofroniou <marks at> writes:

  Shouldn't it be mpn_mul_n that calls mpn_sqr_n rather than
The thinking behind the current design is that mpn callers
usually know if they are squaring and can short-circuit this

For small operations, this cuts down overhead.

  I hadn't realised before now that calling mpn_mul_n did not
  use squaring.

Now you know!


More information about the gmp-devel mailing list