#include "kiss_fft.h"
#include <limits.h>
Go to the source code of this file.
|
#define | MAXFACTORS 32 |
|
#define | S_MUL(a, b) ( (a)*(b) ) |
|
#define | C_MUL(m, a, b) |
|
#define | C_FIXDIV(c, div) /* NOOP */ |
|
#define | C_MULBYSCALAR(c, s) |
|
#define | CHECK_OVERFLOW_OP(a, op, b) /* noop */ |
|
#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 | KISS_FFT_TMP_ALLOC(nbytes) KISS_FFT_MALLOC(nbytes) |
|
#define | KISS_FFT_TMP_FREE(ptr) KISS_FFT_FREE(ptr) |
|
◆ C_ADD
#define C_ADD |
( |
|
res, |
|
|
|
a, |
|
|
|
b |
|
) |
| |
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)
Definition at line 100 of file _kiss_fft_guts.h.
◆ C_ADDTO
#define C_ADDTO |
( |
|
res, |
|
|
|
a |
|
) |
| |
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)
Definition at line 112 of file _kiss_fft_guts.h.
◆ C_FIXDIV
#define C_FIXDIV |
( |
|
c, |
|
|
|
div |
|
) |
| /* NOOP */ |
◆ C_MUL
#define C_MUL |
( |
|
m, |
|
|
|
a, |
|
|
|
b |
|
) |
| |
Value: do{ (m).r = (a).r*(b).r - (a).i*(b).i;\
(m).i = (a).r*(b).i + (a).i*(b).r; }while(0)
Definition at line 87 of file _kiss_fft_guts.h.
◆ C_MULBYSCALAR
#define C_MULBYSCALAR |
( |
|
c, |
|
|
|
s |
|
) |
| |
Value: do{ (c).r *= (s);\
(c).i *= (s); }while(0)
Definition at line 91 of file _kiss_fft_guts.h.
◆ C_SUB
#define C_SUB |
( |
|
res, |
|
|
|
a, |
|
|
|
b |
|
) |
| |
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)
Definition at line 106 of file _kiss_fft_guts.h.
◆ C_SUBFROM
#define C_SUBFROM |
( |
|
res, |
|
|
|
a |
|
) |
| |
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)
Definition at line 119 of file _kiss_fft_guts.h.
◆ CHECK_OVERFLOW_OP
#define CHECK_OVERFLOW_OP |
( |
|
a, |
|
|
|
op, |
|
|
|
b |
|
) |
| /* noop */ |
◆ HALF_OF
#define HALF_OF |
( |
|
x | ) |
((x)*.5) |
◆ kf_cexp
#define kf_cexp |
( |
|
x, |
|
|
|
phase |
|
) |
| |
Value: do{ \
}while(0)
#define KISS_FFT_SIN(phase)
#define KISS_FFT_COS(phase)
Definition at line 141 of file _kiss_fft_guts.h.
◆ KISS_FFT_COS
◆ KISS_FFT_SIN
◆ KISS_FFT_TMP_ALLOC
◆ KISS_FFT_TMP_FREE
◆ MAXFACTORS
◆ pcpx
#define pcpx |
( |
|
c | ) |
fprintf(stderr,"%g + %gi\n",(double)((c)->r),(double)((c)->i) ) |
◆ S_MUL
#define S_MUL |
( |
|
a, |
|
|
|
b |
|
) |
| ( (a)*(b) ) |