_kiss_fft_guts.h File Reference

#include "kiss_fft.h"
#include <limits.h>

Go to the source code of this file.

Classes

struct  kiss_fft_state

Defines

#define MAXFACTORS   32
#define S_MUL(a, b)   ( (a)*(b) )
#define C_MUL(m, a, b)
#define C_FIXDIV(c, div)
#define C_MULBYSCALAR(c, s)
#define CHECK_OVERFLOW_OP(a, op, b)
#define C_ADD(res, a, b)
#define C_SUB(res, a, b)
#define C_ADDTO(res, a)
#define C_SUBFROM(res, a)
#define KISS_FFT_COS(phase)   (kiss_fft_scalar) cos(phase)
#define KISS_FFT_SIN(phase)   (kiss_fft_scalar) sin(phase)
#define HALF_OF(x)   ((x)*.5)
#define kf_cexp(x, phase)
#define pcpx(c)   fprintf(stderr,"%g + %gi\n",(double)((c)->r),(double)((c)->i) )


Define Documentation

#define MAXFACTORS   32

#define S_MUL ( a,
 )     ( (a)*(b) )

Referenced by kf_bfly5().

#define C_MUL ( m,
a,
 ) 

Value:

do{ (m).r = (a).r*(b).r - (a).i*(b).i;\
        (m).i = (a).r*(b).i + (a).i*(b).r; }while(0)

Referenced by fastconv1buf(), kf_bfly2(), kf_bfly3(), kf_bfly4(), kf_bfly5(), kf_bfly_generic(), kiss_fftr(), and kiss_fftri().

#define C_FIXDIV ( c,
div   ) 

#define C_MULBYSCALAR ( c,
 ) 

Value:

do{ (c).r *= (s);\
        (c).i *= (s); }while(0)

Referenced by kf_bfly3().

#define CHECK_OVERFLOW_OP ( a,
op,
 ) 

Referenced by kiss_fftr().

#define C_ADD ( res,
a,
 ) 

Value:

do { \
        CHECK_OVERFLOW_OP((a).r,+,(b).r)\
        CHECK_OVERFLOW_OP((a).i,+,(b).i)\
        (res).r=(a).r+(b).r;  (res).i=(a).i+(b).i; \
    }while(0)

Referenced by kf_bfly3(), kf_bfly4(), kf_bfly5(), kiss_fftr(), and kiss_fftri().

#define C_SUB ( res,
a,
 ) 

Value:

do { \
        CHECK_OVERFLOW_OP((a).r,-,(b).r)\
        CHECK_OVERFLOW_OP((a).i,-,(b).i)\
        (res).r=(a).r-(b).r;  (res).i=(a).i-(b).i; \
    }while(0)

Referenced by kf_bfly2(), kf_bfly3(), kf_bfly4(), kf_bfly5(), kiss_fftr(), and kiss_fftri().

#define C_ADDTO ( res,
 ) 

Value:

do { \
        CHECK_OVERFLOW_OP((res).r,+,(a).r)\
        CHECK_OVERFLOW_OP((res).i,+,(a).i)\
        (res).r += (a).r;  (res).i += (a).i;\
    }while(0)

Referenced by kf_bfly2(), kf_bfly3(), kf_bfly4(), and kf_bfly_generic().

#define C_SUBFROM ( res,
 ) 

Value:

do {\
        CHECK_OVERFLOW_OP((res).r,-,(a).r)\
        CHECK_OVERFLOW_OP((res).i,-,(a).i)\
        (res).r -= (a).r;  (res).i -= (a).i; \
    }while(0)

#define KISS_FFT_COS ( phase   )     (kiss_fft_scalar) cos(phase)

#define KISS_FFT_SIN ( phase   )     (kiss_fft_scalar) sin(phase)

#define HALF_OF ( x   )     ((x)*.5)

Referenced by kf_bfly3(), and kiss_fftr().

#define kf_cexp ( x,
phase   ) 

Value:

do{ \
        (x)->r = KISS_FFT_COS(phase);\
        (x)->i = KISS_FFT_SIN(phase);\
    }while(0)

Referenced by kiss_fft_alloc(), and kiss_fftr_alloc().

#define pcpx (  )     fprintf(stderr,"%g + %gi\n",(double)((c)->r),(double)((c)->i) )


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