📄 cfft_t.c
字号:
//*****************************************************************************
// Filename: cfft_t.c
// Version: 0.01
// Description: test for cfft routine
//*****************************************************************************
#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];
void main(void)
{
for (i=0; i<2*NX; i++)
{
x1[i] = x[i];
}
/* compute */
cbrev(x,x,NX);
cfft(x,NX,scale);
/* test fft */
eflagf = test(x, rtest, NX, MAXERROR); // for r
cbrev(x,x,NX);
cifft(x,NX,noscale);
/* test ifft */
eflagi = test(x, x1, NX, MAXERROR); // for r
if (eflagf != PASS)
{
exit(-1);
}
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -