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:

> 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, kalb at, bjorn.karlsson at, gregod at, wekempf at