[bigint] BigInteger Library

Matt McCutchen <matt at mattmccutchen.net>
Tue Dec 2 12:36:13 PST 2008


On Tue, 2008-12-02 at 14:23 -0500, Tova Wiener wrote:
> I am working on implementing a Data Compression and Storage algorithm,
> and I need to be able to manipulate the bits of my BigIntegers.  I was
> wondering if you have a suggestion of how I could get data out of the
> BigInteger, and into any sort of other data structure which I could
> then manipulate, like an array of integers.  I want to try to avoid
> breaking your abstraction barrier as much as possible.

In the latest version of the library, BigUnsigned has getBlock,
setBlock, getBit, and setBit methods that let you manipulate bits and
blocks or copy them to and from another data structure as necessary.

Matt




More information about the bigint mailing list