xmscore  1.0
XmConst.h
Go to the documentation of this file.
1 #pragma once
2 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
9 // 1. Standard library headers
10 
11 // 3. Standard Library Headers
12 #include <limits>
13 
14 // 4. External Library Headers
15 
16 // 5. Shared Headers
17 
18 // 6. Non-shared Headers
19 namespace xms
20 {
21 // Use std::min and std::max, not Windows' versions.
22 #ifdef max
23 #undef max
24 #endif
25 
26 #ifdef min
27 #undef min
28 #endif
29 
30 // Integer range constants
31 static const int XM_INT_HIGHEST = std::numeric_limits<int>::max();
32 static const int XM_INT_LOWEST = std::numeric_limits<int>::lowest();
33 
34 // Unsigned integer range constants
35 static const unsigned int XM_UINT_HIGHEST =
36  std::numeric_limits<unsigned int>::max();
37 static const unsigned int XM_UINT_LOWEST = std::numeric_limits<unsigned int>::lowest();
38 
39 // Key double constants
40 static const double XM_DBL_HIGHEST =
41  std::numeric_limits<double>::max();
42 static const double XM_DBL_LOWEST =
43  std::numeric_limits<double>::lowest();
44 static const double XM_DBL_NEAREST_ZERO =
45  std::numeric_limits<double>::min();
46 
47 // Key float constants
48 static const float XM_FLT_HIGHEST = std::numeric_limits<float>::max();
49 static const float XM_FLT_LOWEST = std::numeric_limits<float>::lowest();
50 static const float XM_FLT_NEAREST_ZERO = std::numeric_limits<float>::min();
51 
52 } // namespace xms
static const int XM_INT_HIGHEST
2147483647
Definition: XmConst.h:31
static const double XM_DBL_NEAREST_ZERO
2.2250738585072014e-308
Definition: XmConst.h:44
static const double XM_DBL_LOWEST
-1.7976931348623157e+308
Definition: XmConst.h:42
static const float XM_FLT_NEAREST_ZERO
1.17549435e-38
Definition: XmConst.h:50
static const unsigned int XM_UINT_HIGHEST
4294967295
Definition: XmConst.h:35
static const int XM_INT_LOWEST
(-2147483647 - 1)
Definition: XmConst.h:32
static const double XM_DBL_HIGHEST
1.7976931348623157e+308
Definition: XmConst.h:40
static const unsigned int XM_UINT_LOWEST
0
Definition: XmConst.h:37
static const float XM_FLT_HIGHEST
3.40282347e+38
Definition: XmConst.h:48
static const float XM_FLT_LOWEST
-3.40282347e+38
Definition: XmConst.h:49