Boost logo

Boost Users :

Subject: Re: [Boost-users] multiply dynamic_bitset
From: Markus Raab (usenet_at_[hidden])
Date: 2008-11-20 02:58:23


Steven Watanabe wrote:

> AMDG
>
> Markus Raab wrote:
>> How can I multiply two dynamic_bitset?
> What do you mean by multiply?

dynamic_bitset<> i(1024);
i=i*i; // i should be i to the power of 2

> dynamic_bitset is not intended to be a big int.

I would like to implement the "fast exponential function algorithm" which
needs next to bit operations (iterate over all bits) also multiplication.
The numbers need to be e.g. 1024 bits long.

thank you
Markus Raab


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net