gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
FFTCommon.H
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16 */
17 #ifndef FFTCOMMON_H_
18 #define FFTCOMMON_H_
19 
20 #define PLANTYPE FFTW_ESTIMATE
21 
22 #include <fftw3.h>
23 #ifndef fftw_real
24 #define fftw_real double
25 #endif
26 #define c_re(c) ((c)[0])
27 #define c_im(c) ((c)[1])
28 
29 #ifdef _MSC_VER
30 #define _USE_MATH_DEFINES
31 #endif
32 #include <math.h>
33 
34 #if !defined(_MSC_VER) && !defined(__CYGWIN__) && !defined(__MINGW32__) // Mingw/Microsoft doesn't have this header
35 #include <values.h>
36 #else
37 #if defined(__CYGWIN__) || defined(__MINGW32__)
38 #include <float.h>
39 #endif
40 #define MAXDOUBLE DBL_MAX
41 #endif
42 
43 #endif // FFTCOMMON_H_
gtkIOStream: /tmp/gtkiostream/include/fft/FFTCommon.H Source File
GTK+ IOStream  Beta