commit
This commit is contained in:
+8
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user