1 #include "libmontiumc.h"
\r
2 #ifndef FFT_H_INCLUDED
\r
3 #define FFT_H_INCLUDED
\r
6 #define SIZE (1<<BIT_SIZE)
\r
9 /* 2log of number of tiles */
\r
11 /** 2log of total FFT size */
\r
14 /* But don't change these: */
\r
15 /* Number of tiles */
\r
17 /** Total FFT size */
\r
19 /** FFT size on each tile */
\r
21 /** 2log of FFT size on each tile */
\r
24 #ifndef __MONTIUMCC__
\r
29 * Support structure to store the result of a butterfly.
\r
39 * Support structure to store teh inputs for a butterfly.
\r
51 * A struct to hold all the used memories. We put these in
\r
52 * a struct, so we can store them in a local variable and
\r
53 * pass them around in arguments, so we can change the memories
\r
54 * allocated to each on ever stage (MontiumC doesn't support
\r
55 * reassigning global mem variables).
\r
58 mem input_a_re, input_a_im, input_b_re, input_b_im, output_a_re, output_a_im, output_b_re, output_b_im, twiddle_re, twiddle_im;
\r
61 INLINE struct bf_out butterfly(struct bf_in in);
\r
64 /* Values for the second_half argument */
\r
65 #define FIRST_HALF 0
\r
66 #define SECOND_HALF 1
\r
68 /* Values for the stage_odd argument */
\r
69 #define EVEN_STAGE 0
\r
72 /* Values for the cycle_odd argument */
\r
73 #define EVEN_CYCLE 0
\r
76 #endif // !FFT_H_INCLUDED
\r