File: vcl_cfloat.h

package info (click to toggle)
insighttoolkit 3.6.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 94,956 kB
  • ctags: 74,981
  • sloc: cpp: 355,621; ansic: 195,070; fortran: 28,713; python: 3,802; tcl: 1,996; sh: 1,175; java: 583; makefile: 415; csh: 184; perl: 175
file content (67 lines) | stat: -rw-r--r-- 1,428 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef vcl_cfloat_h_
#define vcl_cfloat_h_
//:
// \file
// \author Peter Vanroose, esat.kuleuven.be
// This should define C-style numeric floating point macros

#include "vcl_compiler.h"

#if !VCL_CXX_HAS_HEADER_CFLOAT
# include <float.h>
#elif defined(VCL_BORLAND_55)
# include "borland55/vcl_cfloat.h"
#else
# include "iso/vcl_cfloat.h"
#endif

#ifndef FLT_MAX
# ifdef MAXFLOAT
#  define FLT_MAX MAXFLOAT
# endif
#endif
#ifndef DBL_MAX
# ifdef MAXDOUBLE
#  define DBL_MAX MAXDOUBLE
# endif
#endif
#ifndef FLT_MIN
# ifdef MINFLOAT
#  define FLT_MIN MINFLOAT
# endif
#endif
#ifndef DBL_MIN
# ifdef MINDOUBLE
#  define DBL_MIN MINDOUBLE
# endif
#endif
#ifndef FLT_MAX
# include <vcl_cmath.h>
#endif
#ifndef FLT_MAX
# include <values.h>
#endif
#ifndef FLT_MAX
# include <limits.h>
#endif
#ifndef FLT_MAX
# define FLT_MAX 3.40282346638528860e38F
#endif
#ifndef DBL_MAX
# define DBL_MAX 1.7976931348623157e308
#endif
#ifndef FLT_MIN
# define FLT_MIN 1.1754943508222875e-38F
#endif
#ifndef DBL_MIN
# define DBL_MIN 2.2250738585072014e-308
#endif

// Don't define MAXFLOAT, MAXDOUBLE and relatives here. They are not
// part of the standard (see table 17, section 18.2.2/3), and may not
// be defined in cfloat. Defining them here may cause unnecessary
// redefinition warnings depending on the order that a user includes
// header files.
// If you absolutely need MAXFLOAT, look in the C header file math.h

#endif // vcl_cfloat_h_