slowness

Patrick Pelissier patrick.pelissier at gmail.com
Tue Jan 22 19:52:05 CET 2008


> I am a little surprised you get a ~200-fold slowdown.
>
> Are you using GMP's floats because of the accuracy or because of the
> range (of the exponent)?  What precision of the GMP floats are you
> requesting?
>
> If it is only range you're after, perhaps maintaining a seprate
> overflow exponent for each "double" would be an alternative.  After an
> arithmetic operation, you need to check if the exponent is > 100 (say)
> or less than -100.  Then you canonicalize it, and add (subtract) 100  to
> your overflow exponent.

 Or use DPE library which does it:
https://gforge.inria.fr/frs/?group_id=108

--
 Patrick Pelissier


More information about the gmp-discuss mailing list