
Stefan Seefeld wrote:
Hartmut Kaiser wrote:
Joel de Guzman wrote:
Could you point me to this library, please? I'ld like to
try to put it into
Wave to support cross compilation and/or configurable
precision support.
IMO, you do not need an arbitrary precision integer. All you need is a fixed precision integer (64, 128 or 256 bits). That is a lot faster to operate on. There are lots of such libraries and it's easy to write one. Surely, you do not need to compute things like PI to a million decimal places ;-)
Do you have something particular in mind?
gcc uses some special doubleword arithmetic using a pair of values for this case. FWIW,
Exactly. I remember writing such a class. I'll see if I can dig it up. Essentially, it is just a fixed array of N integers. It's quite easy to write one with just a pair of integers but it's equally straightforward to generalize that to N integers. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net