error handling

Niels Möller nisse at lysator.liu.se
Fri Dec 19 08:28:46 UTC 2014


"David M. Warme" <David at Warme.net> writes:

> Design a new "container" object that holds a single,
> homogeneous array of GMP numbers.

Will this container hold only the mpz_t structs, or also the limb
arrays?

> Also, ask yourself the following question: if you ignore
> C++ wrappings of solitary GMP numbers (where applications
> would instead allocate arrays of individually C++ wrapper'ed
> GMP numbers), how many applications out there actually do
> lots of GMP arithmetic *without* resorting to using arrays of
> GMP numbers?  Probably a few, but I'd bet that the most
> GMP-intensive applications out there have most of their GMP
> number instances residing within such homogeneous arrays.

At least in cryptographic applications, I think arrays of numbers are
rare. Typical cases are objects with one or a few bignums, and functions
with one or a few temporaries.

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