comparison fft/fftw/fftw-3.3.4/tests/fftw-bench.h @ 19:26056e866c29

Add FFTW to comparison table
author Chris Cannam
date Tue, 06 Oct 2015 13:08:39 +0100
parents
children
comparison
equal deleted inserted replaced
18:8db794ca3e0b 19:26056e866c29
1 /* declarations of common subroutines, etc. for use with FFTW
2 self-test/benchmark program (see bench.c). */
3
4 #include "bench-user.h"
5 #include "fftw3.h"
6
7 #define CONCAT(prefix, name) prefix ## name
8 #if defined(BENCHFFT_SINGLE)
9 #define FFTW(x) CONCAT(fftwf_, x)
10 #elif defined(BENCHFFT_LDOUBLE)
11 #define FFTW(x) CONCAT(fftwl_, x)
12 #elif defined(BENCHFFT_QUAD)
13 #define FFTW(x) CONCAT(fftwq_, x)
14 #else
15 #define FFTW(x) CONCAT(fftw_, x)
16 #endif
17
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif /* __cplusplus */
22
23 extern FFTW(plan) mkplan(bench_problem *p, unsigned flags);
24 extern void initial_cleanup(void);
25 extern void final_cleanup(void);
26 extern int import_wisdom(FILE *f);
27 extern void export_wisdom(FILE *f);
28
29 #if defined(HAVE_THREADS) || defined(HAVE_OPENMP)
30 # define HAVE_SMP
31 extern int threads_ok;
32 #endif
33
34 #ifdef __cplusplus
35 } /* extern "C" */
36 #endif /* __cplusplus */
37