kiss_fft.c File Reference

#include "_kiss_fft_guts.h"

Defines

#define CHECKBUF(buf, nbuf, n)

Functions

static void kf_bfly2 (kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st, int m)
static void kf_bfly4 (kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st, const size_t m)
static void kf_bfly3 (kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st, size_t m)
static void kf_bfly5 (kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st, int m)
static void kf_bfly_generic (kiss_fft_cpx *Fout, const size_t fstride, const kiss_fft_cfg st, int m, int p)
static void kf_work (kiss_fft_cpx *Fout, const kiss_fft_cpx *f, const size_t fstride, int in_stride, int *factors, const kiss_fft_cfg st)
static void kf_factor (int n, int *facbuf)
kiss_fft_cfg kiss_fft_alloc (int nfft, int inverse_fft, void *mem, size_t *lenmem)
void kiss_fft_stride (kiss_fft_cfg st, const kiss_fft_cpx *fin, kiss_fft_cpx *fout, int in_stride)
void kiss_fft (kiss_fft_cfg cfg, const kiss_fft_cpx *fin, kiss_fft_cpx *fout)
void kiss_fft_cleanup (void)
int kiss_fft_next_fast_size (int n)

Variables

static kiss_fft_cpxscratchbuf = NULL
static size_t nscratchbuf = 0
static kiss_fft_cpxtmpbuf = NULL
static size_t ntmpbuf = 0

Define Documentation

#define CHECKBUF ( buf,
nbuf,
 ) 

Value:

do { \
        if ( nbuf < (size_t)(n) ) {\
            free(buf); \
            buf = (kiss_fft_cpx*)KISS_FFT_MALLOC(sizeof(kiss_fft_cpx)*(n)); \
            nbuf = (size_t)(n); \
        } \
   }while(0)

Referenced by kf_bfly_generic(), and kiss_fft_stride().


Function Documentation

static void kf_bfly2 ( kiss_fft_cpx Fout,
const size_t  fstride,
const kiss_fft_cfg  st,
int  m 
) [static]

References C_ADDTO, C_FIXDIV, C_MUL, C_SUB, and kiss_fft_state::twiddles.

Referenced by kf_work().

static void kf_bfly4 ( kiss_fft_cpx Fout,
const size_t  fstride,
const kiss_fft_cfg  st,
const size_t  m 
) [static]

static void kf_bfly3 ( kiss_fft_cpx Fout,
const size_t  fstride,
const kiss_fft_cfg  st,
size_t  m 
) [static]

static void kf_bfly5 ( kiss_fft_cpx Fout,
const size_t  fstride,
const kiss_fft_cfg  st,
int  m 
) [static]

static void kf_bfly_generic ( kiss_fft_cpx Fout,
const size_t  fstride,
const kiss_fft_cfg  st,
int  m,
int  p 
) [static]

static void kf_work ( kiss_fft_cpx Fout,
const kiss_fft_cpx f,
const size_t  fstride,
int  in_stride,
int *  factors,
const kiss_fft_cfg  st 
) [static]

static void kf_factor ( int  n,
int *  facbuf 
) [static]

Referenced by kiss_fft_alloc().

kiss_fft_cfg kiss_fft_alloc ( int  nfft,
int  inverse_fft,
void *  mem,
size_t *  lenmem 
)

void kiss_fft_stride ( kiss_fft_cfg  st,
const kiss_fft_cpx fin,
kiss_fft_cpx fout,
int  in_stride 
)

void kiss_fft ( kiss_fft_cfg  cfg,
const kiss_fft_cpx fin,
kiss_fft_cpx fout 
)

void kiss_fft_cleanup ( void   ) 

References nscratchbuf, and ntmpbuf.

Referenced by main(), and two_tone_test().

int kiss_fft_next_fast_size ( int  n  ) 

Referenced by main().


Variable Documentation

kiss_fft_cpx* scratchbuf = NULL [static]

size_t nscratchbuf = 0 [static]

kiss_fft_cpx* tmpbuf = NULL [static]

size_t ntmpbuf = 0 [static]


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8