Mercurial > hg > sv-dependency-builds
annotate src/fftw-3.3.3/tests/fftw-bench.h @ 36:55ece8862b6d
Merge
author | Chris Cannam |
---|---|
date | Wed, 11 Mar 2015 13:32:44 +0000 |
parents | 37bf6b4a2645 |
children |
rev | line source |
---|---|
Chris@10 | 1 /* declarations of common subroutines, etc. for use with FFTW |
Chris@10 | 2 self-test/benchmark program (see bench.c). */ |
Chris@10 | 3 |
Chris@10 | 4 #include "bench-user.h" |
Chris@10 | 5 #include "fftw3.h" |
Chris@10 | 6 |
Chris@10 | 7 #define CONCAT(prefix, name) prefix ## name |
Chris@10 | 8 #if defined(BENCHFFT_SINGLE) |
Chris@10 | 9 #define FFTW(x) CONCAT(fftwf_, x) |
Chris@10 | 10 #elif defined(BENCHFFT_LDOUBLE) |
Chris@10 | 11 #define FFTW(x) CONCAT(fftwl_, x) |
Chris@10 | 12 #elif defined(BENCHFFT_QUAD) |
Chris@10 | 13 #define FFTW(x) CONCAT(fftwq_, x) |
Chris@10 | 14 #else |
Chris@10 | 15 #define FFTW(x) CONCAT(fftw_, x) |
Chris@10 | 16 #endif |
Chris@10 | 17 |
Chris@10 | 18 #ifdef __cplusplus |
Chris@10 | 19 extern "C" |
Chris@10 | 20 { |
Chris@10 | 21 #endif /* __cplusplus */ |
Chris@10 | 22 |
Chris@10 | 23 extern FFTW(plan) mkplan(bench_problem *p, unsigned flags); |
Chris@10 | 24 extern void initial_cleanup(void); |
Chris@10 | 25 extern void final_cleanup(void); |
Chris@10 | 26 extern int import_wisdom(FILE *f); |
Chris@10 | 27 extern void export_wisdom(FILE *f); |
Chris@10 | 28 |
Chris@10 | 29 #if defined(HAVE_THREADS) || defined(HAVE_OPENMP) |
Chris@10 | 30 # define HAVE_SMP |
Chris@10 | 31 extern int threads_ok; |
Chris@10 | 32 #endif |
Chris@10 | 33 |
Chris@10 | 34 #ifdef __cplusplus |
Chris@10 | 35 } /* extern "C" */ |
Chris@10 | 36 #endif /* __cplusplus */ |
Chris@10 | 37 |