X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fmontium-fft.git;a=blobdiff_plain;f=FFT.h;h=b94386e6f4e0d82bbe6f651f9aeaafc89ca930f4;hp=bb9d766363ac96c8a85bd016bad6c58c2c63cde0;hb=HEAD;hpb=57eb86fc79d7056a4b91438104cc1fe1eaf86c59 diff --git a/FFT.h b/FFT.h index bb9d766..b94386e 100644 --- a/FFT.h +++ b/FFT.h @@ -8,9 +8,11 @@ /* 2log of number of tiles */ #define PARAM_q 2 /** 2log of total FFT size */ -#define PARAM_n 4 +#define PARAM_n 12 -/* Note that the FFT size on each tile 2^(n-q) must be at least 8! */ +/* Note that the FFT size on each tile 2^(n-q) must be at least + * 8 and always a multiple of 4. The number of stages on each + * tile (n-q) must also be a multiple of 2. */ /* But don't change these: */ /* Number of tiles */ @@ -73,5 +75,16 @@ /* Values for the cycle_odd argument */ #define EVEN_CYCLE 0 #define ODD_CYCLE 1 + +enum in_strategy { + REGULAR_IN, + DISTRIBUTED_IN, +}; + +enum out_strategy { + REGULAR_OUT, + DISTRIBUTED_OUT, + BITREVERSED_OUT, +}; #endif // !FFT_H_INCLUDED