two possible coding porjects
Tue, 29 Jul 2003 02:10:10 +0200
Content-Type: text/plain; charset=iso-8859-1
On 2003-07-29 08:58:27 +1000, Kevin Ryde wrote:
> firstname.lastname@example.org writes:
> > this would at the very least admit error reporting when
> > non-reallocable storage overflows.
> You mean at the mpn level? Routines using those must simply take
> care not to go past their defined operands. Some of the hairier ones
> have some ASSERTs to see that theory accords with practice, but
> that's about the limit of the checking we think is needed.
As for temporary space needed _during_ the calculation, each mpn
routine allocates memory for itself as it is now. As far as I know,
that'll gradually change into a system where each mpn routine takes a
pointer to all the scratch space it needs as an argument, thereby
reducing allocation overhead and/or use of stack space (depending on
whether heap or stack memory was allocated), and hopefully reducing
memory use through reuse of temp space.
Karl Hasselstr=F6m, email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
-----END PGP SIGNATURE-----