/* fft.h *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Part of: A program that uses FFTs * * Author: E.BERTIN (IAP) * * Contents: Include for fft.c. * * Last modify: 08/10/2009 * *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */ #ifndef _FITSCAT_H_ #include "fits/fitscat.h" #endif /*---------------------------- Internal constants ---------------------------*/ /*------------------------------- Other Macros ------------------------------*/ #define QFFTWMALLOC(ptr, typ, nel) \ {if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \ error(EXIT_FAILURE, "Not enough memory for ", \ #ptr " (" #nel " elements) !");;} #define QFFTWFREE(ptr) fftwf_free(ptr) /*--------------------------- structure definitions -------------------------*/ /*---------------------------------- protos --------------------------------*/ extern void fft_conv(float *data1, float *fdata2, int *size), fft_end(), fft_init(int nthreads), fft_reset(void); extern float *fft_rtf(float *data, int *size);