This commit is contained in:
yichin
2020-07-09 11:06:56 +08:00
parent f4130016bd
commit 5cb9be51f2
@@ -822,11 +822,18 @@ static void BitReverse(int BR_array[],int NUM_FFT) {
unsigned int swapA, swapB, sw_cnt;
#endif
unsigned char BR_table = [0,4,2,6,1,3,5,7];
int TemStore;
for (sw_cnt=1; sw_cnt<NUM_FFT/2; sw_cnt++){
swapA = sw_cnt;
swapB =
swapB = BR_table[sw_cnt] *2;
if (swapB > swapA){
TemStore = BR_array[swapA];
BR_array[swapA] = BR_array[swapB];
BR_array[swapB] = TemStore;
}
}