Boost logo

Boost Users :

From: Kobi Cohen-Arazi (kobi.cohenarazi_at_[hidden])
Date: 2006-11-04 18:11:48


I find that to be very fast:

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

HTH,
Kobi.

On 11/4/06, chun ping wang <cablepuff_at_[hidden]> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
- Kobi


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