fftdef.h

来自「TigerSharc TS201 32-bit floating point F」· C头文件 代码 · 共 63 行

H
63
字号
//***********************************************************************
//      Defines for the FFT routines for TigerSHARC family of processors
//      FFTDef.h
//***********************************************************************

#if !defined(__FFTDEF_H_)
#define __FFTDEF_H_

//***********************************************************************
//here N and log2(N) must be defined.

//N represents the number of input points to the fft.
/*
Each line of the input buffer represents a 32 bit number:
the 16 most significant bits are the imaginary part of the inputs,
the 16 less significant bits the the real part of the inputs
-N may be a power of 2 number between 64 and 32768
*/

#define     N           1024

//***********************************************************************

#if N==64
    #define	MAX_FFT_SIZE	32
    #define     log2_N    6
#elif N==128
    #define	MAX_FFT_SIZE	64
    #define     log2_N    7
#elif N==256
    #define	MAX_FFT_SIZE	128
    #define     log2_N    8
#elif N==512
    #define	MAX_FFT_SIZE	256
    #define     log2_N    9
#elif N==1024
    #define	MAX_FFT_SIZE	512
    #define     log2_N    10
#elif N==2048
    #define	MAX_FFT_SIZE	1024
    #define     log2_N    11
#elif N==4096
    #define	MAX_FFT_SIZE	2048
    #define     log2_N    12
#elif N==8192
    #define	MAX_FFT_SIZE	4096
    #define     log2_N    13
#elif N==16384
    #define	MAX_FFT_SIZE  8192
    #define     log2_N    14
#elif N==32768
    #define	MAX_FFT_SIZE  16384
    #define     log2_N    15
#else
    #define initialization_error
    #define	MAX_FFT_SIZE	16384
    #define     log2_N    15

#endif


#endif //__FFTDEF_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?