📄 cfft_t.c
字号:
//*****************************************************************************
// Filename: cfft_t.c
// Version: 0.01
// Description: test for cfft routine
//-----------------------------------------------------------------------------
// Revision History:
// 0.01, R. Piedra, 06/15/98, - Original release
//*****************************************************************************
#include <math.h>
#include <tms320.h>
#include <dsplib.h>
#include "test.h"
short i;
short eflagf= PASS;
short eflagi= PASS;
short scale = 1;
short noscale = 0;
short x1[2*NX];
main()
{
for (i=0; i<2*NX; i++)
{
// x[i] = 32767;
x1[i] = x[i];
}
// compute
cbrev(x,x,NX);
cfft(x,NX,scale);
// test fft
eflagf = test(x, rtest, NX, MAXERROR); // for r
for (i=0; i<2*NX; i++)
{
// x[i] = x[i]>>3;
}
cbrev(x,x,NX);
cifft(x,NX,noscale);
// test ifft
eflagi = test(x, x1, NX, MAXERROR); // for r
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -