Mercurial > hg > vamp-plugin-sdk
comparison src/vamp-sdk/FFTimpl.cpp @ 449:b89653767a60 vampipe
Add forgotten file...
author | Chris Cannam |
---|---|
date | Mon, 22 Aug 2016 10:14:49 +0100 |
parents | |
children | b409560a805b |
comparison
equal
deleted
inserted
replaced
448:aadfe19a0e94 | 449:b89653767a60 |
---|---|
1 | |
2 // Override C linkage for KissFFT headers. So long as we have already | |
3 // included all of the other (system etc) headers KissFFT depends on, | |
4 // this should work out OK | |
5 #undef __cplusplus | |
6 | |
7 namespace Kiss { | |
8 | |
9 #undef KISS_FFT_H | |
10 #undef KISS_FTR_H | |
11 #undef KISS_FFT__GUTS_H | |
12 #undef FIXED_POINT | |
13 #undef USE_SIMD | |
14 #undef kiss_fft_scalar | |
15 | |
16 #ifdef SINGLE_PRECISION_FFT | |
17 #pragma message("Using single-precision FFTs") | |
18 typedef float kiss_fft_scalar; | |
19 #define kiss_fft_scalar float | |
20 #else | |
21 typedef double kiss_fft_scalar; | |
22 #define kiss_fft_scalar double | |
23 #endif | |
24 | |
25 inline void free(void *ptr) { ::free(ptr); } | |
26 #include "ext/kiss_fft.c" | |
27 #include "ext/kiss_fftr.c" | |
28 | |
29 #undef kiss_fft_scalar // leaving only the namespaced typedef | |
30 | |
31 } | |
32 |