PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/libc/src/stdinth.inc

https://github.com/slibre/freepascal
Unknown | 97 lines | 76 code | 21 blank | 0 comment | 0 complexity | 3511be012a9a2101fdddc43023e8ffb3 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1
 2type
 3  int64_t = Int64;
 4  uint8_t = byte;
 5
 6  uint16_t = word;
 7  uint32_t = dword;
 8  uint64_t = qword;
 9  int_least8_t = char;
10  int_least16_t = smallint;
11  int_least32_t = longint;
12  int_least64_t = int64;
13  uint_least8_t = byte;
14  uint_least16_t = word;
15  uint_least32_t = dword;
16  uint_least64_t = qword;
17
18  int_fast8_t = shortint;
19  int_fast16_t = longint;
20  int_fast32_t = longint;
21  int_fast64_t = int64;
22  uint_fast8_t = byte;
23
24  uint_fast16_t = dword;
25  uint_fast32_t = dword;
26  uint_fast64_t = qword;
27
28  intptr_t = longint;
29  uintptr_t = dword;
30  intmax_t = Int64;
31  uintmax_t = QWord;
32
33const
34  INT8_MIN = -(128);
35  INT16_MIN = (-(32767)) - 1;
36  INT32_MIN = (-(2147483647)) - 1;
37  INT64_MIN             = int64_t(-int64_t(9223372036854775807)-1);
38
39  INT8_MAX = 127;
40  INT16_MAX = 32767;
41  INT32_MAX = 2147483647;
42  INT64_MAX             = int64_t(9223372036854775807);
43
44  UINT8_MAX = 255;
45  UINT16_MAX = 65535;
46  UINT32_MAX = 4294967295;
47  UINT64_MAX            = uint64_t(-1);
48
49  INT_LEAST8_MIN = -(128);
50  INT_LEAST16_MIN = (-(32767)) - 1;
51  INT_LEAST32_MIN = (-(2147483647)) - 1;
52  INT_LEAST64_MIN = int_least64_t(-int64_t(9223372036854775807)-1);
53
54  INT_LEAST8_MAX = 127;
55  INT_LEAST16_MAX = 32767;
56  INT_LEAST32_MAX = 2147483647;
57  INT_LEAST64_MAX =  int_least64_t(9223372036854775807);
58
59  UINT_LEAST8_MAX = 255;
60  UINT_LEAST16_MAX = 65535;
61  UINT_LEAST32_MAX = 4294967295;
62  UINT_LEAST64_MAX      = uint_least64_t(-1);
63
64  INT_FAST8_MIN = -(128);
65  INT_FAST16_MIN = (-(2147483647)) - 1;
66  INT_FAST32_MIN = (-(2147483647)) - 1;
67  INT_FAST64_MIN        = int_fast64_t(-Int64(9223372036854775807)-1);
68
69  INT_FAST8_MAX = 127;
70  INT_FAST16_MAX = 2147483647;
71  INT_FAST32_MAX = 2147483647;
72  INT_FAST64_MAX        = int_fast64_t(9223372036854775807);
73
74  UINT_FAST8_MAX = 255;
75  UINT_FAST16_MAX = 4294967295;
76  UINT_FAST32_MAX = 4294967295;
77  UINT_FAST64_MAX       = uint_fast64_t(-1);
78
79  INTPTR_MIN = (-(2147483647)) - 1;
80  INTPTR_MAX = 2147483647;
81  UINTPTR_MAX = 4294967295;
82
83  INTMAX_MIN            = Int64(-Int64(9223372036854775807)-1);
84  INTMAX_MAX            = Int64(9223372036854775807);
85  UINTMAX_MAX           = QWord(-1);
86
87  PTRDIFF_MIN = (-(2147483647)) - 1;
88  PTRDIFF_MAX = 2147483647;
89
90  SIG_ATOMIC_MIN = (-(2147483647)) - 1;
91  SIG_ATOMIC_MAX = 2147483647;
92
93  SIZE_MAX = 4294967295;
94
95  WINT_MIN = 0;
96  WINT_MAX = 4294967295;
97