Browse Source

use new functions in fft_org

master
Jörg Thalheim 6 years ago
parent
commit
c6ee251c46
  1. 8
      fft-org.c
  2. 2
      fft-org.h

8
fft-org.c

@ -117,8 +117,8 @@ int fix_fft_org(fixed fr[], fixed fi[], int m, int inverse)
{
j = m << k;
/* 0 <= j < N_WAVE/2 */
wr = Sinewave[j+N_WAVE/4];
wi = -Sinewave[j];
wr = Sinewave_org[j+N_WAVE/4];
wi = -Sinewave_org[j];
if(inverse) wi = -wi;
if(shift)
@ -130,8 +130,8 @@ int fix_fft_org(fixed fr[], fixed fi[], int m, int inverse)
{
j = i + l;
tr = fix_mpy(wr,fr[j]) - fix_mpy(wi,fi[j]);
ti = fix_mpy(wr,fi[j]) + fix_mpy(wi,fr[j]);
tr = fix_mpy_org(wr,fr[j]) - fix_mpy_org(wi,fi[j]);
ti = fix_mpy_org(wr,fi[j]) + fix_mpy_org(wi,fr[j]);
qr = fr[i];
qi = fi[i];

2
fft-org.h

@ -21,4 +21,4 @@ extern fixed Sinewave_org[N_WAVE];
fixed fix_mpy_org(fixed a, fixed b);
int fix_fft_org(fixed *fr, fixed *fi, int m, int inverse);
#endif //FFT_H
#endif //FFT_H
Loading…
Cancel
Save