use new functions in fft_org
This commit is contained in:
parent
907005f752
commit
c6ee251c46
@ -117,8 +117,8 @@ int fix_fft_org(fixed fr[], fixed fi[], int m, int inverse)
|
|||||||
{
|
{
|
||||||
j = m << k;
|
j = m << k;
|
||||||
/* 0 <= j < N_WAVE/2 */
|
/* 0 <= j < N_WAVE/2 */
|
||||||
wr = Sinewave[j+N_WAVE/4];
|
wr = Sinewave_org[j+N_WAVE/4];
|
||||||
wi = -Sinewave[j];
|
wi = -Sinewave_org[j];
|
||||||
|
|
||||||
if(inverse) wi = -wi;
|
if(inverse) wi = -wi;
|
||||||
if(shift)
|
if(shift)
|
||||||
@ -130,8 +130,8 @@ int fix_fft_org(fixed fr[], fixed fi[], int m, int inverse)
|
|||||||
{
|
{
|
||||||
|
|
||||||
j = i + l;
|
j = i + l;
|
||||||
tr = fix_mpy(wr,fr[j]) - fix_mpy(wi,fi[j]);
|
tr = fix_mpy_org(wr,fr[j]) - fix_mpy_org(wi,fi[j]);
|
||||||
ti = fix_mpy(wr,fi[j]) + fix_mpy(wi,fr[j]);
|
ti = fix_mpy_org(wr,fi[j]) + fix_mpy_org(wi,fr[j]);
|
||||||
|
|
||||||
qr = fr[i];
|
qr = fr[i];
|
||||||
qi = fi[i];
|
qi = fi[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user