From: Joel de Guzman (joel_at_[hidden])
Date: 2005-12-07 00:16:35
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
>>>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.
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.
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk