Wolframe, 0.0.3

integer.hpp
Go to the documentation of this file.
1 /************************************************************************
2 Copyright (C) 2011 - 2014 Project Wolframe.
3 All rights reserved.
4 
5 This file is part of Project Wolframe.
6 
7 Commercial Usage
8 Licensees holding valid Project Wolframe Commercial licenses may
9 use this file in accordance with the Project Wolframe
10 Commercial License Agreement provided with the Software or,
11 alternatively, in accordance with the terms contained
12 in a written agreement between the licensee and Project Wolframe.
13 
14 GNU General Public License Usage
15 Alternatively, you can redistribute this file and/or modify it
16 under the terms of the GNU General Public License as published by
17 the Free Software Foundation, either version 3 of the License, or
18 (at your option) any later version.
19 
20 Wolframe is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24 
25 You should have received a copy of the GNU General Public License
26 along with Wolframe. If not, see <http://www.gnu.org/licenses/>.
27 
28 If you have questions regarding the use of this file, please contact
29 Project Wolframe.
30 
31 ************************************************************************/
34 
35 #ifndef _Wolframe_TYPES_INTEGER_HPP_INCLUDED
36 #define _Wolframe_TYPES_INTEGER_HPP_INCLUDED
37 
38 #include <limits>
39 #include <boost/cstdint.hpp>
40 
41 #define _WOLFRAME_INTEGER boost::int64_t
42 #define _WOLFRAME_UINTEGER boost::uint64_t
43 
44 #define _WOLFRAME_MAX_INTEGER std::numeric_limits<_WOLFRAME_INTEGER>::max()
45 #define _WOLFRAME_MAX_UINTEGER std::numeric_limits<_WOLFRAME_UINTEGER>::max()
46 
47 #define _WOLFRAME_MIN_INTEGER std::numeric_limits<_WOLFRAME_INTEGER>::min()
48 #define _WOLFRAME_MIN_UINTEGER std::numeric_limits<_WOLFRAME_UINTEGER>::min()
49 
50 #define _WOLFRAME_INTEGER_DIGITS 19
51 #define _WOLFRAME_UINTEGER_DIGITS 20
52 
53 #endif