-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfft.h
33 lines (26 loc) · 839 Bytes
/
fft.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#ifndef FFT_H
#define FFT_H
#include "general.h"
int fix_ifft(fixed *__restrict__ fr, fixed *__restrict__ fi, int m);
void fix_fft(fixed *__restrict__ fr, fixed *__restrict__ fi);
#define FIX_MPY(A,B) ( ( (long)(A) * (long)(B) ) >> 15 )
#if N_WAVE != 1024
//ERROR: N_WAVE != 1024
#endif
#define N_WAVE 1024 /* dimension of Sinewave[] */
#define LOG2_N_WAVE 10 /* log2(N_WAVE) */
#define M 10
#define N (1<<M) //1<<M
#endif
/* [] END OF FILE */