summaryrefslogtreecommitdiff
path: root/stdint.h
blob: b116f05d72ce056deab260327e6ba5e6467500f4 (plain)
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
#ifndef __STDINT_H__
#define __STDINT_H__

/*
UNG's Not GNU

MIT License

Copyright (c) 2011-2020 Jakob Kaivo <jkk@ung.org>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#if	(defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__)
/* ./src/stdint/INT16_C.c */
#define INT16_C(__value)                                ((int_least16_t)__value)
/* ./src/stdint/INT16_MAX.c */
#define INT16_MAX                                                        (32767)
/* ./src/stdint/INT16_MIN.c */
#define INT16_MIN                                                       (-32768)
/* ./src/stdint/INT32_C.c */
#define INT32_C(__value)                             ((int_least32_t)__value##L)
/* ./src/stdint/INT32_MAX.c */
#define INT32_MAX                                                   (2147483647)
/* ./src/stdint/INT32_MIN.c */
#define INT32_MIN                                                  (-2147483648)
/* ./src/stdint/INT64_C.c */
#define INT64_C(__value)                            ((int_least64_t)__value##LL)
/* ./src/stdint/INT64_MAX.c */
#define INT64_MAX                                        (9223372036854775807LL)
/* ./src/stdint/INT64_MIN.c */
#define INT64_MIN                                       (-9223372036854775808LL)
/* ./src/stdint/INT8_C.c */
#define INT8_C(__value)                                  ((int_least8_t)__value)
/* ./src/stdint/INT8_MAX.c */
#define INT8_MAX                                                           (127)
/* ./src/stdint/INT8_MIN.c */
#define INT8_MIN                                                          (-128)
/* ./src/stdint/INTMAX_C.c */
#define INTMAX_C(__value)                                ((intmax_t)__value##LL)
/* ./src/stdint/INTMAX_MAX.c */
#define INTMAX_MAX                                       (9223372036854775807LL)
/* ./src/stdint/INTMAX_MIN.c */
#define INTMAX_MIN                                           (-INTMAX_MAX - 1LL)
/* ./src/stdint/INTPTR_MAX.c */
#define INTPTR_MAX                                       /* FIXME */     (32767)
/* ./src/stdint/INTPTR_MIN.c */
#define INTPTR_MIN                                    /* FIXME */       (-32767)
/* ./src/stdint/INT_FAST16_MAX.c */
#define INT_FAST16_MAX                                                   (32767)
/* ./src/stdint/INT_FAST16_MIN.c */
#define INT_FAST16_MIN                                                  (-32768)
/* ./src/stdint/INT_FAST32_MAX.c */
#define INT_FAST32_MAX                                              (2147483647)
/* ./src/stdint/INT_FAST32_MIN.c */
#define INT_FAST32_MIN                                             (-2147483648)
/* ./src/stdint/INT_FAST64_MAX.c */
#define INT_FAST64_MAX                                   (9223372036854775807LL)
/* ./src/stdint/INT_FAST64_MIN.c */
#define INT_FAST64_MIN                                  (-9223372036854775808LL)
/* ./src/stdint/INT_FAST8_MAX.c */
#define INT_FAST8_MAX                                                      (127)
/* ./src/stdint/INT_FAST8_MIN.c */
#define INT_FAST8_MIN                                                     (-128)
/* ./src/stdint/INT_LEAST16_MAX.c */
#define INT_LEAST16_MAX                                                  (32767)
/* ./src/stdint/INT_LEAST16_MIN.c */
#define INT_LEAST16_MIN                                                 (-32768)
/* ./src/stdint/INT_LEAST32_MAX.c */
#define INT_LEAST32_MAX                                             (2147483647)
/* ./src/stdint/INT_LEAST32_MIN.c */
#define INT_LEAST32_MIN                                            (-2147483648)
/* ./src/stdint/INT_LEAST64_MAX.c */
#define INT_LEAST64_MAX                                  (9223372036854775807LL)
/* ./src/stdint/INT_LEAST64_MIN.c */
#define INT_LEAST64_MIN                                 (-9223372036854775808LL)
/* ./src/stdint/INT_LEAST8_MAX.c */
#define INT_LEAST8_MAX                                                     (127)
/* ./src/stdint/INT_LEAST8_MIN.c */
#define INT_LEAST8_MIN                                                    (-128)
/* ./src/stdint/PTRDIFF_MAX.c */
#define PTRDIFF_MAX                                   /* FIXME */        (65535)
/* ./src/stdint/PTRDIFF_MIN.c */
#define PTRDIFF_MIN                                   /* FIXME */       (-65535)
/* ./src/stdint/SIG_ATOMIC_MAX.c */
#define SIG_ATOMIC_MAX                                                     (127)
/* ./src/stdint/SIG_ATOMIC_MIN.c */
#define SIG_ATOMIC_MIN                                                    (-127)
/* ./src/stdint/SIZE_MAX.c */
#define SIZE_MAX                              /* FIXME */                (65535)
/* ./src/stdint/UINT16_C.c */
#define UINT16_C(__value)                              ((uint_least16_t)__value)
/* ./src/stdint/UINT16_MAX.c */
#define UINT16_MAX                                                       (65535)
/* ./src/stdint/UINT32_C.c */
#define UINT32_C(__value)                           ((uint_least32_t)__value##U)
/* ./src/stdint/UINT32_MAX.c */
#define UINT32_MAX                                                 (4294967295U)
/* ./src/stdint/UINT64_C.c */
#define UINT64_C(__value)                         ((uint_least32_t)__value##ULL)
/* ./src/stdint/UINT64_MAX.c */
#define UINT64_MAX                                     (18446744073709551616ULL)
/* ./src/stdint/UINT8_C.c */
#define UINT8_C(__value)                                ((uint_least8_t)__value)
/* ./src/stdint/UINT8_MAX.c */
#define UINT8_MAX                                                          (255)
/* ./src/stdint/UINTMAX_C.c */
#define UINTMAX_C(__value)                             ((uintmax_t)__value##ULL)
/* ./src/stdint/UINTMAX_MAX.c */
#define UINTMAX_MAX                                    (18446744073709551615ULL)
/* ./src/stdint/UINTPTR_MAX.c */
#define UINTPTR_MAX                                 /* FIXME */          (65535)
/* ./src/stdint/UINT_FAST16_MAX.c */
#define UINT_FAST16_MAX                                                  (65535)
/* ./src/stdint/UINT_FAST32_MAX.c */
#define UINT_FAST32_MAX                                            (4294967295U)
/* ./src/stdint/UINT_FAST64_MAX.c */
#define UINT_FAST64_MAX                                (18446744073709551616ULL)
/* ./src/stdint/UINT_FAST8_MAX.c */
#define UINT_FAST8_MAX                                                     (255)
/* ./src/stdint/UINT_LEAST16_MAX.c */
#define UINT_LEAST16_MAX                                                 (65535)
/* ./src/stdint/UINT_LEAST32_MAX.c */
#define UINT_LEAST32_MAX                                           (4294967295U)
/* ./src/stdint/UINT_LEAST64_MAX.c */
#define UINT_LEAST64_MAX                               (18446744073709551616ULL)
/* ./src/stdint/UINT_LEAST8_MAX.c */
#define UINT_LEAST8_MAX                                                    (255)
/* ./src/stdint/WINT_MAX.c */
#define WINT_MAX                                                    (2147483647)
/* ./src/stdint/WINT_MIN.c */
#define WINT_MIN                                                   (-2147483648)
/* src/wchar/WCHAR_MAX.c */
#define WCHAR_MAX                                                     (0x10FFFF)
/* src/wchar/WCHAR_MIN.c */
#define WCHAR_MIN                                                            (0)
#endif

#if	(defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__)
/* ./src/stdint/int16_t.c */
#ifndef __TYPE_int16_t_DEFINED__
#define __TYPE_int16_t_DEFINED__
typedef short int                                                       int16_t;
#endif

/* ./src/stdint/int32_t.c */
#ifndef __TYPE_int32_t_DEFINED__
#define __TYPE_int32_t_DEFINED__
typedef int                                                             int32_t;
#endif

/* ./src/stdint/int64_t.c */
#ifndef __TYPE_int64_t_DEFINED__
#define __TYPE_int64_t_DEFINED__
typedef long long int                                                   int64_t;
#endif

/* ./src/stdint/int8_t.c */
#ifndef __TYPE_int8_t_DEFINED__
#define __TYPE_int8_t_DEFINED__
typedef signed char                                                      int8_t;
#endif

/* ./src/stdint/int_fast16_t.c */
#ifndef __TYPE_int_fast16_t_DEFINED__
#define __TYPE_int_fast16_t_DEFINED__
typedef short int                                                  int_fast16_t;
#endif

/* ./src/stdint/int_fast32_t.c */
#ifndef __TYPE_int_fast32_t_DEFINED__
#define __TYPE_int_fast32_t_DEFINED__
typedef long int                                                   int_fast32_t;
#endif

/* ./src/stdint/int_fast64_t.c */
#ifndef __TYPE_int_fast64_t_DEFINED__
#define __TYPE_int_fast64_t_DEFINED__
typedef long long int                                              int_fast64_t;
#endif

/* ./src/stdint/int_fast8_t.c */
#ifndef __TYPE_int_fast8_t_DEFINED__
#define __TYPE_int_fast8_t_DEFINED__
typedef signed char                                                 int_fast8_t;
#endif

/* ./src/stdint/int_least16_t.c */
#ifndef __TYPE_int_least16_t_DEFINED__
#define __TYPE_int_least16_t_DEFINED__
typedef short int                                                 int_least16_t;
#endif

/* ./src/stdint/int_least32_t.c */
#ifndef __TYPE_int_least32_t_DEFINED__
#define __TYPE_int_least32_t_DEFINED__
typedef long int                                                  int_least32_t;
#endif

/* ./src/stdint/int_least64_t.c */
#ifndef __TYPE_int_least64_t_DEFINED__
#define __TYPE_int_least64_t_DEFINED__
typedef long long int                                             int_least64_t;
#endif

/* ./src/stdint/int_least8_t.c */
#ifndef __TYPE_int_least8_t_DEFINED__
#define __TYPE_int_least8_t_DEFINED__
typedef signed char                                                int_least8_t;
#endif

/* ./src/stdint/intmax_t.c */
#ifndef __TYPE_intmax_t_DEFINED__
#define __TYPE_intmax_t_DEFINED__
typedef long long int                                                  intmax_t;
#endif

/* ./src/stdint/intptr_t.c */
#ifndef __TYPE_intptr_t_DEFINED__
#define __TYPE_intptr_t_DEFINED__
typedef unsigned long int                                              intptr_t;
#endif

/* ./src/stdint/uint16_t.c */
#ifndef __TYPE_uint16_t_DEFINED__
#define __TYPE_uint16_t_DEFINED__
typedef unsigned short int                                             uint16_t;
#endif

/* ./src/stdint/uint32_t.c */
#ifndef __TYPE_uint32_t_DEFINED__
#define __TYPE_uint32_t_DEFINED__
typedef unsigned int                                                   uint32_t;
#endif

/* ./src/stdint/uint64_t.c */
#ifndef __TYPE_uint64_t_DEFINED__
#define __TYPE_uint64_t_DEFINED__
typedef unsigned long long int                                         uint64_t;
#endif

/* ./src/stdint/uint8_t.c */
#ifndef __TYPE_uint8_t_DEFINED__
#define __TYPE_uint8_t_DEFINED__
typedef unsigned char                                                   uint8_t;
#endif

/* ./src/stdint/uint_fast16_t.c */
#ifndef __TYPE_uint_fast16_t_DEFINED__
#define __TYPE_uint_fast16_t_DEFINED__
typedef unsigned short int                                        uint_fast16_t;
#endif

/* ./src/stdint/uint_fast32_t.c */
#ifndef __TYPE_uint_fast32_t_DEFINED__
#define __TYPE_uint_fast32_t_DEFINED__
typedef unsigned int                                              uint_fast32_t;
#endif

/* ./src/stdint/uint_fast64_t.c */
#ifndef __TYPE_uint_fast64_t_DEFINED__
#define __TYPE_uint_fast64_t_DEFINED__
typedef unsigned long long int                                    uint_fast64_t;
#endif

/* ./src/stdint/uint_fast8_t.c */
#ifndef __TYPE_uint_fast8_t_DEFINED__
#define __TYPE_uint_fast8_t_DEFINED__
typedef unsigned char                                              uint_fast8_t;
#endif

/* ./src/stdint/uint_least16_t.c */
#ifndef __TYPE_uint_least16_t_DEFINED__
#define __TYPE_uint_least16_t_DEFINED__
typedef unsigned short int                                       uint_least16_t;
#endif

/* ./src/stdint/uint_least32_t.c */
#ifndef __TYPE_uint_least32_t_DEFINED__
#define __TYPE_uint_least32_t_DEFINED__
typedef unsigned long int                                        uint_least32_t;
#endif

/* ./src/stdint/uint_least64_t.c */
#ifndef __TYPE_uint_least64_t_DEFINED__
#define __TYPE_uint_least64_t_DEFINED__
typedef unsigned long long int                                   uint_least64_t;
#endif

/* ./src/stdint/uint_least8_t.c */
#ifndef __TYPE_uint_least8_t_DEFINED__
#define __TYPE_uint_least8_t_DEFINED__
typedef unsigned char                                             uint_least8_t;
#endif

/* ./src/stdint/uintmax_t.c */
#ifndef __TYPE_uintmax_t_DEFINED__
#define __TYPE_uintmax_t_DEFINED__
typedef unsigned long long int                                        uintmax_t;
#endif

/* ./src/stdint/uintptr_t.c */
#ifndef __TYPE_uintptr_t_DEFINED__
#define __TYPE_uintptr_t_DEFINED__
typedef unsigned long long int                                        uintptr_t;
#endif

#endif


#endif