gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
AudioMaskCommon.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 
18 #ifndef AUDIOMASKCOMMON_H_
19 #define AUDIOMASKCOMMON_H_
20 
21 #ifdef _MSC_VER
22 
23 #ifndef MS_ROUND
24 #include <math.h>
26 double round(double number) {
27  return number < 0.0 ? ceil(number - 0.5) : floor(number + 0.5);
28 }
29 #else
30 extern double round(double);
31 #endif
32 #ifndef rint
33 #define rint round
34 #endif
35 #endif
36 
37 #if !defined(_MSC_VER) && !defined(__CYGWIN__) && !defined(__MINGW32__) // Mingw/Microsoft doesn't have this header
38 #include <values.h>
39 #else
40 #if defined(__CYGWIN__) || defined(__MINGW32__)
41 #include <float.h>
42 #endif
43 #define MAXDOUBLE DBL_MAX
44 #endif
45 
46 #endif //AUDIOMASKCOMMON_H_
double precision function round(x)
Definition: round.f:2
gtkIOStream: /tmp/gtkiostream/include/AudioMask/AudioMaskCommon.H Source File
GTK+ IOStream  Beta