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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/* <stdint.h> — integer types of fixed width (C99 7.18).
*
* The mapping follows the platform's, because these types have to name the
* same underlying types the platform's own headers name: `int64_t` is `long`
* wherever `long` is 64 bits wide, as it is on every LP64 system, and
* `long long` otherwise.
*/
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef long int64_t;
typedef unsigned long uint64_t;
/* `__extension__`: `long long` is C99's, and a header may use it whatever
* the entry point is. */
__extension__ typedef long long int64_t;
__extension__ typedef unsigned long long uint64_t;
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;
/* The "fast" types follow the platform's choice, which on a 64-bit system is
* a 64-bit type for everything but the 8-bit one. */
typedef int8_t int_fast8_t;
typedef uint8_t uint_fast8_t;
typedef int64_t int_fast16_t;
typedef int64_t int_fast32_t;
typedef uint64_t uint_fast16_t;
typedef uint64_t uint_fast32_t;
typedef int32_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef uint32_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef int64_t int_fast64_t;
typedef uint64_t uint_fast64_t;
/* The same two types `size_t` and `ptrdiff_t` are built from; taking them from
* the predefined macros is what keeps every pointer-sized typedef naming one
* underlying type rather than two that merely happen to be the same width. */
__extension__ typedef __INTPTR_TYPE__ intptr_t;
__extension__ typedef __UINTPTR_TYPE__ uintptr_t;
typedef int64_t intmax_t;
typedef uint64_t uintmax_t;
/* Written the long way round because 9223372036854775808 does not fit in any
* signed type, so negating the maximum is the only way to spell the minimum. */
/* The range of `wchar_t`, whatever the target made it; see <stddef.h>.
* <wchar.h> defines the same two macros, and either header may be included
* first, so both guard them. */
/* _CINRS_STDINT_H */