File: mptBaseTypes.h

package info (click to toggle)
libopenmpt 0.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,844 kB
  • sloc: cpp: 129,441; sh: 4,695; ansic: 1,107; makefile: 712
file content (55 lines) | stat: -rw-r--r-- 1,592 bytes parent folder | download
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
/*
 * mptBaseTypes.h
 * --------------
 * Purpose: Basic data type definitions.
 * Notes  : (currently none)
 * Authors: OpenMPT Devs
 * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
 */


#pragma once

#include "openmpt/all/BuildSettings.hpp"

#include "mpt/base/check_platform.hpp"
#include "mpt/base/float.hpp"
#include "mpt/base/integer.hpp"
#include "mpt/base/pointer.hpp"
#include "mpt/base/size.hpp"
#include "mpt/base/source_location.hpp"
#include "openmpt/base/Types.hpp"

#include "mptBaseMacros.h"

#include <array>
#include <limits>
#include <type_traits>

#include <cstddef>
#include <cstdint>

#include <stdint.h>



OPENMPT_NAMESPACE_BEGIN


constexpr inline int8 int8_min     = std::numeric_limits<int8>::min();
constexpr inline int16 int16_min   = std::numeric_limits<int16>::min();
constexpr inline int32 int32_min   = std::numeric_limits<int32>::min();
constexpr inline int64 int64_min   = std::numeric_limits<int64>::min();

constexpr inline int8 int8_max     = std::numeric_limits<int8>::max();
constexpr inline int16 int16_max   = std::numeric_limits<int16>::max();
constexpr inline int32 int32_max   = std::numeric_limits<int32>::max();
constexpr inline int64 int64_max   = std::numeric_limits<int64>::max();

constexpr inline uint8 uint8_max   = std::numeric_limits<uint8>::max();
constexpr inline uint16 uint16_max = std::numeric_limits<uint16>::max();
constexpr inline uint32 uint32_max = std::numeric_limits<uint32>::max();
constexpr inline uint64 uint64_max = std::numeric_limits<uint64>::max();


OPENMPT_NAMESPACE_END