| 1 |
/* |
| 2 |
* mptBaseTypes.h |
| 3 |
* -------------- |
| 4 |
* Purpose: Basic data type definitions. |
| 5 |
* Notes : (currently none) |
| 6 |
* Authors: OpenMPT Devs |
| 7 |
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details. |
| 8 |
*/ |
| 9 |
|
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include "openmpt/all/BuildSettings.hpp" |
| 14 |
|
| 15 |
#include "mpt/base/check_platform.hpp" |
| 16 |
#include "mpt/base/float.hpp" |
| 17 |
#include "mpt/base/integer.hpp" |
| 18 |
#include "mpt/base/pointer.hpp" |
| 19 |
#include "mpt/base/size.hpp" |
| 20 |
#include "mpt/base/source_location.hpp" |
| 21 |
#include "openmpt/base/Types.hpp" |
| 22 |
|
| 23 |
#include "mptBaseMacros.h" |
| 24 |
|
| 25 |
#include <array> |
| 26 |
#include <limits> |
| 27 |
#include <type_traits> |
| 28 |
|
| 29 |
#include <cstddef> |
| 30 |
#include <cstdint> |
| 31 |
|
| 32 |
#include <stdint.h> |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
OPENMPT_NAMESPACE_BEGIN |
| 37 |
|
| 38 |
|
| 39 |
constexpr inline int8 int8_min = std::numeric_limits<int8>::min(); |
| 40 |
constexpr inline int16 int16_min = std::numeric_limits<int16>::min(); |
| 41 |
constexpr inline int32 int32_min = std::numeric_limits<int32>::min(); |
| 42 |
constexpr inline int64 int64_min = std::numeric_limits<int64>::min(); |
| 43 |
|
| 44 |
constexpr inline int8 int8_max = std::numeric_limits<int8>::max(); |
| 45 |
constexpr inline int16 int16_max = std::numeric_limits<int16>::max(); |
| 46 |
constexpr inline int32 int32_max = std::numeric_limits<int32>::max(); |
| 47 |
constexpr inline int64 int64_max = std::numeric_limits<int64>::max(); |
| 48 |
|
| 49 |
constexpr inline uint8 uint8_max = std::numeric_limits<uint8>::max(); |
| 50 |
constexpr inline uint16 uint16_max = std::numeric_limits<uint16>::max(); |
| 51 |
constexpr inline uint32 uint32_max = std::numeric_limits<uint32>::max(); |
| 52 |
constexpr inline uint64 uint64_max = std::numeric_limits<uint64>::max(); |
| 53 |
|
| 54 |
|
| 55 |
OPENMPT_NAMESPACE_END |