I find that to be very fast:

http://aggregate.org/MAGIC/#Bit%20Reversal

HTH,
Kobi.

On 11/4/06, chun ping wang <cablepuff@gmail.com> wrote:
Hey i have a quick question regarding dynamic bits. Is there a quick and effective way to reverse bits. (if so how)... i try swapping.. but i get compile time error. so that i can calculate iterative-fft since it requires bit-reverse-copy

for (i = 0; i<num_bits/2; ++i)
swap(b[i], b[i+numbits/2]);


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users




--
- Kobi