INT.h.in 30.6 KB
Newer Older
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
/*============================================================================
  Kitware Information Macro Library
  Copyright 2010-2011 Kitware, Inc.
  All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
  are met:

  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

  * Neither the name of Kitware, Inc. nor the names of its contributors
    may be used to endorse or promote products derived from this
    software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
============================================================================*/
#ifndef @KWIML@_INT_H
#define @KWIML@_INT_H
/*
This header defines macros with information about sized integer types.
Only information that can be determined using the preprocessor at
compilation time is available.  No try-compile results may be added
here.  Instead we memorize results on platforms of interest.

An includer may optionally define the following macros to suppress errors:

Input:
  @KWIML@_INT_NO_VERIFY          = skip verification declarations
  @KWIML@_INT_NO_ERROR_INT64_T   = type '@KWIML@_INT_int64_t' is optional (*)
  @KWIML@_INT_NO_ERROR_UINT64_T  = type '@KWIML@_INT_uint64_t' is optional (*)
  @KWIML@_INT_NO_ERROR_INTPTR_T  = type '@KWIML@_INT_intptr_t' is optional (*)
  @KWIML@_INT_NO_ERROR_UINTPTR_T = type '@KWIML@_INT_uintptr_t' is optional (*)

An includer may optionally define the following macros to override defaults.
Either way, an includer may test these macros after inclusion:

  @KWIML@_INT_HAVE_STDINT_H   = include <stdint.h>
  @KWIML@_INT_NO_STDINT_H     = do not include <stdint.h>
  @KWIML@_INT_HAVE_INTTYPES_H = include <inttypes.h>
  @KWIML@_INT_NO_INTTYPES_H   = do not include <inttypes.h>

An includer may test the following macros after inclusion:

  @KWIML@_INT_HAVE_INT#_T     = type 'int#_t' is available
  @KWIML@_INT_HAVE_UINT#_T    = type 'uint#_t' is available
                                # = 8, 16, 32, 64, PTR

  @KWIML@_INT_int#_t          = signed integer type exactly # bits wide
  @KWIML@_INT_uint#_t         = unsigned integer type exactly # bits wide
                                # = 8, 16, 32, 64 (*), ptr (*)

  @KWIML@_INT_NO_INT64_T      = type '@KWIML@_INT_int64_t' not available
  @KWIML@_INT_NO_UINT64_T     = type '@KWIML@_INT_uint64_t' not available
  @KWIML@_INT_NO_INTPTR_T     = type '@KWIML@_INT_intptr_t' not available
  @KWIML@_INT_NO_UINTPTR_T    = type '@KWIML@_INT_uintptr_t' not available

  @KWIML@_INT_INT#_C(c)       = signed integer constant at least # bits wide
  @KWIML@_INT_UINT#_C(c)      = unsigned integer constant at least # bits wide
                                # = 8, 16, 32, 64 (*)

  @KWIML@_INT_<fmt>#          = print or scan format, <fmt> in table below
                                # = 8, 16, 32, 64, PTR (*)

             signed                unsigned
           ----------- ------------------------------
          |  decimal  | decimal  octal   hexadecimal |
    print | PRId PRIi |  PRIu    PRIo    PRIx  PRIX  |
     scan | SCNd SCNi |  SCNu    SCNo    SCNx        |
           ----------- ------------------------------

    The SCN*8 and SCN*64 format macros will not be defined on systems
    with scanf implementations known not to support them.

90
91
92
93
  @KWIML@_INT_BROKEN_<fmt># = macro <fmt># is incorrect if defined
    Some compilers define integer format macros incorrectly for their
    own formatted print/scan implementations.

94
95
  @KWIML@_INT_BROKEN_INT#_C  = macro INT#_C is incorrect if defined
  @KWIML@_INT_BROKEN_UINT#_C = macro UINT#_C is incorrect if defined
96
    Some compilers define integer constant macros incorrectly and
97
98
    cannot handle literals as large as the integer type or even
    produce bad preprocessor syntax.
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

  @KWIML@_INT_BROKEN_INT8_T   = type 'int8_t' is available but incorrect
    Some compilers have a flag to make 'char' (un)signed but do not account
    for it while defining int8_t in the non-default case.

  The broken cases do not affect correctness of the macros documented above.
*/

#include "ABI.h"

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_STDINT_H) /* Already defined. */
#elif defined(@KWIML@_INT_NO_STDINT_H) /* Already defined. */
#elif defined(HAVE_STDINT_H) /* Optionally provided by includer.  */
# define @KWIML@_INT_HAVE_STDINT_H 1
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 */
# define @KWIML@_INT_HAVE_STDINT_H 1
#elif defined(_MSC_VER) /* MSVC */
# if _MSC_VER >= 1600
#  define @KWIML@_INT_HAVE_STDINT_H 1
# else
#  define @KWIML@_INT_NO_STDINT_H 1
# endif
#elif defined(__BORLANDC__) /* Borland */
# if __BORLANDC__ >= 0x560
#  define @KWIML@_INT_HAVE_STDINT_H 1
# else
#  define @KWIML@_INT_NO_STDINT_H 1
# endif
#elif defined(__WATCOMC__) /* Watcom */
# define @KWIML@_INT_NO_STDINT_H 1
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_INTTYPES_H) /* Already defined. */
#elif defined(@KWIML@_INT_NO_INTTYPES_H) /* Already defined. */
#elif defined(HAVE_INTTYPES_H) /* Optionally provided by includer.  */
# define @KWIML@_INT_HAVE_INTTYPES_H 1
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 */
# define @KWIML@_INT_HAVE_INTTYPES_H 1
#elif defined(_MSC_VER) /* MSVC */
# define @KWIML@_INT_NO_INTTYPES_H 1
#elif defined(__BORLANDC__) /* Borland */
# define @KWIML@_INT_NO_INTTYPES_H 1
#elif defined(__WATCOMC__) /* Watcom */
# define @KWIML@_INT_NO_INTTYPES_H 1
#else /* Assume it exists.  */
# define @KWIML@_INT_HAVE_INTTYPES_H 1
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_STDINT_H) && defined(@KWIML@_INT_NO_STDINT_H)
# error "Both @KWIML@_INT_HAVE_STDINT_H and @KWIML@_INT_NO_STDINT_H defined!"
#endif
#if defined(@KWIML@_INT_HAVE_INTTYPES_H) && defined(@KWIML@_INT_NO_INTTYPES_H)
# error "Both @KWIML@_INT_HAVE_INTTYPES_H and @KWIML@_INT_NO_INTTYPES_H defined!"
#endif

#if defined(@KWIML@_INT_HAVE_STDINT_H)
# include <stdint.h>
#endif
#if defined(@KWIML@_INT_HAVE_INTTYPES_H)
# if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
#  define __STDC_FORMAT_MACROS
# endif
# include <inttypes.h>
#endif

#if defined(@KWIML@_INT_HAVE_STDINT_H) || defined(@KWIML@_INT_HAVE_INTTYPES_H)
#define @KWIML@_INT_HAVE_INT8_T 1
#define @KWIML@_INT_HAVE_UINT8_T 1
#define @KWIML@_INT_HAVE_INT16_T 1
#define @KWIML@_INT_HAVE_UINT16_T 1
#define @KWIML@_INT_HAVE_INT32_T 1
#define @KWIML@_INT_HAVE_UINT32_T 1
#define @KWIML@_INT_HAVE_INT64_T 1
#define @KWIML@_INT_HAVE_UINT64_T 1
#define @KWIML@_INT_HAVE_INTPTR_T 1
#define @KWIML@_INT_HAVE_UINTPTR_T 1
#endif

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
#if defined(_AIX43) && !defined(_AIX50) && !defined(_AIX51)
  /* AIX 4.3 defines these incorrectly with % and no quotes. */
# define @KWIML@_INT_BROKEN_PRId8
# define @KWIML@_INT_BROKEN_SCNd8
# define @KWIML@_INT_BROKEN_PRIi8
# define @KWIML@_INT_BROKEN_SCNi8
# define @KWIML@_INT_BROKEN_PRIo8
# define @KWIML@_INT_BROKEN_SCNo8
# define @KWIML@_INT_BROKEN_PRIu8
# define @KWIML@_INT_BROKEN_SCNu8
# define @KWIML@_INT_BROKEN_PRIx8
# define @KWIML@_INT_BROKEN_SCNx8
# define @KWIML@_INT_BROKEN_PRIX8
# define @KWIML@_INT_BROKEN_PRId16
# define @KWIML@_INT_BROKEN_SCNd16
# define @KWIML@_INT_BROKEN_PRIi16
# define @KWIML@_INT_BROKEN_SCNi16
# define @KWIML@_INT_BROKEN_PRIo16
# define @KWIML@_INT_BROKEN_SCNo16
# define @KWIML@_INT_BROKEN_PRIu16
# define @KWIML@_INT_BROKEN_SCNu16
# define @KWIML@_INT_BROKEN_PRIx16
# define @KWIML@_INT_BROKEN_SCNx16
# define @KWIML@_INT_BROKEN_PRIX16
# define @KWIML@_INT_BROKEN_PRId32
# define @KWIML@_INT_BROKEN_SCNd32
# define @KWIML@_INT_BROKEN_PRIi32
# define @KWIML@_INT_BROKEN_SCNi32
# define @KWIML@_INT_BROKEN_PRIo32
# define @KWIML@_INT_BROKEN_SCNo32
# define @KWIML@_INT_BROKEN_PRIu32
# define @KWIML@_INT_BROKEN_SCNu32
# define @KWIML@_INT_BROKEN_PRIx32
# define @KWIML@_INT_BROKEN_SCNx32
# define @KWIML@_INT_BROKEN_PRIX32
# define @KWIML@_INT_BROKEN_PRId64
# define @KWIML@_INT_BROKEN_SCNd64
# define @KWIML@_INT_BROKEN_PRIi64
# define @KWIML@_INT_BROKEN_SCNi64
# define @KWIML@_INT_BROKEN_PRIo64
# define @KWIML@_INT_BROKEN_SCNo64
# define @KWIML@_INT_BROKEN_PRIu64
# define @KWIML@_INT_BROKEN_SCNu64
# define @KWIML@_INT_BROKEN_PRIx64
# define @KWIML@_INT_BROKEN_SCNx64
# define @KWIML@_INT_BROKEN_PRIX64
# define @KWIML@_INT_BROKEN_PRIdPTR
# define @KWIML@_INT_BROKEN_SCNdPTR
# define @KWIML@_INT_BROKEN_PRIiPTR
# define @KWIML@_INT_BROKEN_SCNiPTR
# define @KWIML@_INT_BROKEN_PRIoPTR
# define @KWIML@_INT_BROKEN_SCNoPTR
# define @KWIML@_INT_BROKEN_PRIuPTR
# define @KWIML@_INT_BROKEN_SCNuPTR
# define @KWIML@_INT_BROKEN_PRIxPTR
# define @KWIML@_INT_BROKEN_SCNxPTR
# define @KWIML@_INT_BROKEN_PRIXPTR
#endif

239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
#if (defined(__SUNPRO_C)||defined(__SUNPRO_CC)) && defined(_CHAR_IS_UNSIGNED)
# define @KWIML@_INT_BROKEN_INT8_T /* system type defined incorrectly */
#elif defined(__BORLANDC__) && defined(_CHAR_UNSIGNED)
# define @KWIML@_INT_BROKEN_INT8_T /* system type defined incorrectly */
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_INT8_T) && !defined(@KWIML@_INT_BROKEN_INT8_T)
# define @KWIML@_INT_int8_t int8_t
#else
# define @KWIML@_INT_int8_t signed char
#endif
#if defined(@KWIML@_INT_HAVE_UINT8_T)
# define @KWIML@_INT_uint8_t uint8_t
#else
# define @KWIML@_INT_uint8_t unsigned char
#endif

#if defined(__INTEL_COMPILER)
258
259
260
# if defined(_WIN32)
#  define @KWIML@_INT__NO_SCN8
# endif
261
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
262
263
264
265
266
267
268
269
# define @KWIML@_INT__NO_SCN8
#elif defined(__BORLANDC__)
# define @KWIML@_INT__NO_SCN8
# define @KWIML@_INT__NO_SCN64
#elif defined(_MSC_VER)
# define @KWIML@_INT__NO_SCN8
#elif defined(__WATCOMC__)
# define @KWIML@_INT__NO_SCN8
270
271
# elif defined(__hpux) /* HP runtime lacks support (any compiler) */
# define @KWIML@_INT__NO_SCN8
272
273
274
#endif

/* 8-bit d, i */
275
276
#if defined(@KWIML@_INT_HAVE_INT8_T) && defined(PRId8) \
  && !defined(@KWIML@_INT_BROKEN_PRId8)
277
278
279
280
# define @KWIML@_INT_PRId8 PRId8
#else
# define @KWIML@_INT_PRId8   "d"
#endif
281
282
#if defined(@KWIML@_INT_HAVE_INT8_T) && defined(SCNd8) \
  && !defined(@KWIML@_INT_BROKEN_SCNd8)
283
284
285
286
# define @KWIML@_INT_SCNd8 SCNd8
#elif !defined(@KWIML@_INT__NO_SCN8)
# define @KWIML@_INT_SCNd8 "hhd"
#endif
287
288
#if defined(@KWIML@_INT_HAVE_INT8_T) && defined(PRIi8) \
  && !defined(@KWIML@_INT_BROKEN_PRIi8)
289
290
291
292
# define @KWIML@_INT_PRIi8 PRIi8
#else
# define @KWIML@_INT_PRIi8   "i"
#endif
293
294
#if defined(@KWIML@_INT_HAVE_INT8_T) && defined(SCNi8) \
  && !defined(@KWIML@_INT_BROKEN_SCNi8)
295
296
297
298
299
300
# define @KWIML@_INT_SCNi8 SCNi8
#elif !defined(@KWIML@_INT__NO_SCN8)
# define @KWIML@_INT_SCNi8 "hhi"
#endif

/* 8-bit o, u, x, X */
301
302
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(PRIo8) \
  && !defined(@KWIML@_INT_BROKEN_PRIo8)
303
304
305
306
# define @KWIML@_INT_PRIo8 PRIo8
#else
# define @KWIML@_INT_PRIo8   "o"
#endif
307
308
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(SCNo8) \
  && !defined(@KWIML@_INT_BROKEN_SCNo8)
309
310
311
312
# define @KWIML@_INT_SCNo8 SCNo8
#elif !defined(@KWIML@_INT__NO_SCN8)
# define @KWIML@_INT_SCNo8 "hho"
#endif
313
314
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(PRIu8) \
  && !defined(@KWIML@_INT_BROKEN_PRIu8)
315
316
317
318
# define @KWIML@_INT_PRIu8 PRIu8
#else
# define @KWIML@_INT_PRIu8   "u"
#endif
319
320
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(SCNu8) \
  && !defined(@KWIML@_INT_BROKEN_SCNu8)
321
322
323
324
# define @KWIML@_INT_SCNu8 SCNu8
#elif !defined(@KWIML@_INT__NO_SCN8)
# define @KWIML@_INT_SCNu8 "hhu"
#endif
325
326
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(PRIx8) \
  && !defined(@KWIML@_INT_BROKEN_PRIx8)
327
328
329
330
# define @KWIML@_INT_PRIx8 PRIx8
#else
# define @KWIML@_INT_PRIx8   "x"
#endif
331
332
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(SCNx8) \
  && !defined(@KWIML@_INT_BROKEN_SCNx8)
333
334
335
336
# define @KWIML@_INT_SCNx8 SCNx8
#elif !defined(@KWIML@_INT__NO_SCN8)
# define @KWIML@_INT_SCNx8 "hhx"
#endif
337
338
#if defined(@KWIML@_INT_HAVE_UINT8_T) && defined(PRIX8) \
  && !defined(@KWIML@_INT_BROKEN_PRIX8)
339
340
341
342
343
344
# define @KWIML@_INT_PRIX8 PRIX8
#else
# define @KWIML@_INT_PRIX8   "X"
#endif

/* 8-bit constants */
345
#if defined(INT8_C) && !defined(@KWIML@_INT_BROKEN_INT8_C)
346
347
348
349
# define @KWIML@_INT_INT8_C(c) INT8_C(c)
#else
# define @KWIML@_INT_INT8_C(c) c
#endif
350
#if defined(UINT8_C) && !defined(@KWIML@_INT_BROKEN_UINT8_C)
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
# define @KWIML@_INT_UINT8_C(c) UINT8_C(c)
#else
# define @KWIML@_INT_UINT8_C(c) c ## u
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_INT16_T)
# define @KWIML@_INT_int16_t int16_t
#else
# define @KWIML@_INT_int16_t signed short
#endif
#if defined(@KWIML@_INT_HAVE_UINT16_T)
# define @KWIML@_INT_uint16_t uint16_t
#else
# define @KWIML@_INT_uint16_t unsigned short
#endif

/* 16-bit d, i */
369
370
#if defined(@KWIML@_INT_HAVE_INT16_T) && defined(PRId16) \
  && !defined(@KWIML@_INT_BROKEN_PRId16)
371
372
373
374
# define @KWIML@_INT_PRId16 PRId16
#else
# define @KWIML@_INT_PRId16  "d"
#endif
375
376
#if defined(@KWIML@_INT_HAVE_INT16_T) && defined(SCNd16) \
  && !defined(@KWIML@_INT_BROKEN_SCNd16)
377
378
379
380
# define @KWIML@_INT_SCNd16 SCNd16
#else
# define @KWIML@_INT_SCNd16 "hd"
#endif
381
382
#if defined(@KWIML@_INT_HAVE_INT16_T) && defined(PRIi16) \
  && !defined(@KWIML@_INT_BROKEN_PRIi16)
383
384
385
386
# define @KWIML@_INT_PRIi16 PRIi16
#else
# define @KWIML@_INT_PRIi16  "i"
#endif
387
388
#if defined(@KWIML@_INT_HAVE_INT16_T) && defined(SCNi16) \
  && !defined(@KWIML@_INT_BROKEN_SCNi16)
389
390
391
392
393
394
# define @KWIML@_INT_SCNi16 SCNi16
#else
# define @KWIML@_INT_SCNi16 "hi"
#endif

/* 16-bit o, u, x, X */
395
396
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(PRIo16) \
  && !defined(@KWIML@_INT_BROKEN_PRIo16)
397
398
399
400
# define @KWIML@_INT_PRIo16 PRIo16
#else
# define @KWIML@_INT_PRIo16  "o"
#endif
401
402
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(SCNo16) \
  && !defined(@KWIML@_INT_BROKEN_SCNo16)
403
404
405
406
# define @KWIML@_INT_SCNo16 SCNo16
#else
# define @KWIML@_INT_SCNo16 "ho"
#endif
407
408
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(PRIu16) \
  && !defined(@KWIML@_INT_BROKEN_PRIu16)
409
410
411
412
# define @KWIML@_INT_PRIu16 PRIu16
#else
# define @KWIML@_INT_PRIu16  "u"
#endif
413
414
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(SCNu16) \
  && !defined(@KWIML@_INT_BROKEN_SCNu16)
415
416
417
418
# define @KWIML@_INT_SCNu16 SCNu16
#else
# define @KWIML@_INT_SCNu16 "hu"
#endif
419
420
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(PRIx16) \
  && !defined(@KWIML@_INT_BROKEN_PRIx16)
421
422
423
424
# define @KWIML@_INT_PRIx16 PRIx16
#else
# define @KWIML@_INT_PRIx16  "x"
#endif
425
426
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(SCNx16) \
  && !defined(@KWIML@_INT_BROKEN_SCNx16)
427
428
429
430
# define @KWIML@_INT_SCNx16 SCNx16
#else
# define @KWIML@_INT_SCNx16 "hx"
#endif
431
432
#if defined(@KWIML@_INT_HAVE_UINT16_T) && defined(PRIX16) \
  && !defined(@KWIML@_INT_BROKEN_PRIX16)
433
434
435
436
437
438
# define @KWIML@_INT_PRIX16 PRIX16
#else
# define @KWIML@_INT_PRIX16  "X"
#endif

/* 16-bit constants */
439
#if defined(INT16_C) && !defined(@KWIML@_INT_BROKEN_INT16_C)
440
441
442
443
# define @KWIML@_INT_INT16_C(c) INT16_C(c)
#else
# define @KWIML@_INT_INT16_C(c) c
#endif
444
#if defined(UINT16_C) && !defined(@KWIML@_INT_BROKEN_UINT16_C)
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
# define @KWIML@_INT_UINT16_C(c) UINT16_C(c)
#else
# define @KWIML@_INT_UINT16_C(c) c ## u
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_INT32_T)
# define @KWIML@_INT_int32_t int32_t
#else
# define @KWIML@_INT_int32_t signed int
#endif
#if defined(@KWIML@_INT_HAVE_UINT32_T)
# define @KWIML@_INT_uint32_t uint32_t
#else
# define @KWIML@_INT_uint32_t unsigned int
#endif

/* 32-bit d, i */
463
464
#if defined(@KWIML@_INT_HAVE_INT32_T) && defined(PRId32) \
  && !defined(@KWIML@_INT_BROKEN_PRId32)
465
466
467
468
# define @KWIML@_INT_PRId32 PRId32
#else
# define @KWIML@_INT_PRId32 "d"
#endif
469
470
#if defined(@KWIML@_INT_HAVE_INT32_T) && defined(SCNd32) \
  && !defined(@KWIML@_INT_BROKEN_SCNd32)
471
472
473
474
# define @KWIML@_INT_SCNd32 SCNd32
#else
# define @KWIML@_INT_SCNd32 "d"
#endif
475
476
#if defined(@KWIML@_INT_HAVE_INT32_T) && defined(PRIi32) \
  && !defined(@KWIML@_INT_BROKEN_PRIi32)
477
478
479
480
# define @KWIML@_INT_PRIi32 PRIi32
#else
# define @KWIML@_INT_PRIi32 "i"
#endif
481
482
#if defined(@KWIML@_INT_HAVE_INT32_T) && defined(SCNi32) \
  && !defined(@KWIML@_INT_BROKEN_SCNi32)
483
484
485
486
487
488
# define @KWIML@_INT_SCNi32 SCNi32
#else
# define @KWIML@_INT_SCNi32 "i"
#endif

/* 32-bit o, u, x, X */
489
490
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(PRIo32) \
  && !defined(@KWIML@_INT_BROKEN_PRIo32)
491
492
493
494
# define @KWIML@_INT_PRIo32 PRIo32
#else
# define @KWIML@_INT_PRIo32 "o"
#endif
495
496
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(SCNo32) \
  && !defined(@KWIML@_INT_BROKEN_SCNo32)
497
498
499
500
# define @KWIML@_INT_SCNo32 SCNo32
#else
# define @KWIML@_INT_SCNo32 "o"
#endif
501
502
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(PRIu32) \
  && !defined(@KWIML@_INT_BROKEN_PRIu32)
503
504
505
506
# define @KWIML@_INT_PRIu32 PRIu32
#else
# define @KWIML@_INT_PRIu32 "u"
#endif
507
508
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(SCNu32) \
  && !defined(@KWIML@_INT_BROKEN_SCNu32)
509
510
511
512
# define @KWIML@_INT_SCNu32 SCNu32
#else
# define @KWIML@_INT_SCNu32 "u"
#endif
513
514
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(PRIx32) \
  && !defined(@KWIML@_INT_BROKEN_PRIx32)
515
516
517
518
# define @KWIML@_INT_PRIx32 PRIx32
#else
# define @KWIML@_INT_PRIx32 "x"
#endif
519
520
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(SCNx32) \
  && !defined(@KWIML@_INT_BROKEN_SCNx32)
521
522
523
524
# define @KWIML@_INT_SCNx32 SCNx32
#else
# define @KWIML@_INT_SCNx32 "x"
#endif
525
526
#if defined(@KWIML@_INT_HAVE_UINT32_T) && defined(PRIX32) \
  && !defined(@KWIML@_INT_BROKEN_PRIX32)
527
528
529
530
531
# define @KWIML@_INT_PRIX32 PRIX32
#else
# define @KWIML@_INT_PRIX32 "X"
#endif

532
533
534
535
536
537
#if defined(__hpux) && defined(__GNUC__) && !defined(__LP64__) \
 && defined(__CONCAT__) && defined(__CONCAT_U__)
  /* Some HPs define UINT32_C incorrectly and break GNU.  */
# define @KWIML@_INT_BROKEN_UINT32_C
#endif

538
/* 32-bit constants */
539
#if defined(INT32_C) && !defined(@KWIML@_INT_BROKEN_INT32_C)
540
541
542
543
# define @KWIML@_INT_INT32_C(c) INT32_C(c)
#else
# define @KWIML@_INT_INT32_C(c) c
#endif
544
#if defined(UINT32_C) && !defined(@KWIML@_INT_BROKEN_UINT32_C)
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
# define @KWIML@_INT_UINT32_C(c) UINT32_C(c)
#else
# define @KWIML@_INT_UINT32_C(c) c ## u
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_INT64_T)
# define @KWIML@_INT_int64_t int64_t
#elif @KWIML@_ABI_SIZEOF_LONG == 8
# define @KWIML@_INT_int64_t signed long
#elif defined(@KWIML@_ABI_SIZEOF_LONG_LONG) && @KWIML@_ABI_SIZEOF_LONG_LONG == 8
# define @KWIML@_INT_int64_t signed long long
#elif defined(@KWIML@_ABI_SIZEOF___INT64)
# define @KWIML@_INT_int64_t signed __int64
#elif defined(@KWIML@_INT_NO_ERROR_INT64_T)
# define @KWIML@_INT_NO_INT64_T
#else
# error "No type known for 'int64_t'."
#endif
#if defined(@KWIML@_INT_HAVE_UINT64_T)
# define @KWIML@_INT_uint64_t uint64_t
#elif @KWIML@_ABI_SIZEOF_LONG == 8
# define @KWIML@_INT_uint64_t unsigned long
#elif defined(@KWIML@_ABI_SIZEOF_LONG_LONG) && @KWIML@_ABI_SIZEOF_LONG_LONG == 8
# define @KWIML@_INT_uint64_t unsigned long long
#elif defined(@KWIML@_ABI_SIZEOF___INT64)
# define @KWIML@_INT_uint64_t unsigned __int64
#elif defined(@KWIML@_INT_NO_ERROR_UINT64_T)
# define @KWIML@_INT_NO_UINT64_T
#else
# error "No type known for 'uint64_t'."
#endif

#if defined(__INTEL_COMPILER)
#elif defined(__BORLANDC__)
# define @KWIML@_INT__NO_FMTLL /* type 'long long' but not 'll' format */
# define @KWIML@_INT_BROKEN_INT64_C   /* system macro defined incorrectly */
# define @KWIML@_INT_BROKEN_UINT64_C  /* system macro defined incorrectly */
#elif defined(_MSC_VER) && _MSC_VER < 1400
# define @KWIML@_INT__NO_FMTLL /* type 'long long' but not 'll' format */
#endif

#if @KWIML@_ABI_SIZEOF_LONG == 8
# define @KWIML@_INT__FMT64 "l"
#elif defined(@KWIML@_ABI_SIZEOF_LONG_LONG) && @KWIML@_ABI_SIZEOF_LONG_LONG == 8
# if !defined(@KWIML@_INT__NO_FMTLL)
#  define @KWIML@_INT__FMT64 "ll"
# else
#  define @KWIML@_INT__FMT64 "I64"
# endif
#elif defined(@KWIML@_ABI_SIZEOF___INT64)
# if defined(__BORLANDC__)
#  define @KWIML@_INT__FMT64 "L"
# else
#  define @KWIML@_INT__FMT64 "I64"
# endif
#endif

/* 64-bit d, i */
604
605
#if defined(@KWIML@_INT_HAVE_INT64_T) && defined(PRId64) \
  && !defined(@KWIML@_INT_BROKEN_PRId64)
606
607
608
609
# define @KWIML@_INT_PRId64 PRId64
#elif defined(@KWIML@_INT__FMT64)
# define @KWIML@_INT_PRId64 @KWIML@_INT__FMT64 "d"
#endif
610
611
#if defined(@KWIML@_INT_HAVE_INT64_T) && defined(SCNd64) \
  && !defined(@KWIML@_INT_BROKEN_SCNd64)
612
613
614
615
# define @KWIML@_INT_SCNd64 SCNd64
#elif defined(@KWIML@_INT__FMT64) && !defined(@KWIML@_INT__NO_SCN64)
# define @KWIML@_INT_SCNd64 @KWIML@_INT__FMT64 "d"
#endif
616
617
#if defined(@KWIML@_INT_HAVE_INT64_T) && defined(PRIi64) \
  && !defined(@KWIML@_INT_BROKEN_PRIi64)
618
619
620
621
# define @KWIML@_INT_PRIi64 PRIi64
#elif defined(@KWIML@_INT__FMT64)
# define @KWIML@_INT_PRIi64 @KWIML@_INT__FMT64 "d"
#endif
622
623
#if defined(@KWIML@_INT_HAVE_INT64_T) && defined(SCNi64) \
  && !defined(@KWIML@_INT_BROKEN_SCNi64)
624
625
626
627
628
629
# define @KWIML@_INT_SCNi64 SCNi64
#elif defined(@KWIML@_INT__FMT64) && !defined(@KWIML@_INT__NO_SCN64)
# define @KWIML@_INT_SCNi64 @KWIML@_INT__FMT64 "d"
#endif

/* 64-bit o, u, x, X */
630
631
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(PRIo64) \
  && !defined(@KWIML@_INT_BROKEN_PRIo64)
632
633
634
635
# define @KWIML@_INT_PRIo64 PRIo64
#elif defined(@KWIML@_INT__FMT64)
# define @KWIML@_INT_PRIo64 @KWIML@_INT__FMT64 "o"
#endif
636
637
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(SCNo64) \
  && !defined(@KWIML@_INT_BROKEN_SCNo64)
638
639
640
641
# define @KWIML@_INT_SCNo64 SCNo64
#elif defined(@KWIML@_INT__FMT64) && !defined(@KWIML@_INT__NO_SCN64)
# define @KWIML@_INT_SCNo64 @KWIML@_INT__FMT64 "o"
#endif
642
643
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(PRIu64) \
  && !defined(@KWIML@_INT_BROKEN_PRIu64)
644
645
646
647
# define @KWIML@_INT_PRIu64 PRIu64
#elif defined(@KWIML@_INT__FMT64)
# define @KWIML@_INT_PRIu64 @KWIML@_INT__FMT64 "u"
#endif
648
649
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(SCNu64) \
  && !defined(@KWIML@_INT_BROKEN_SCNu64)
650
651
652
653
# define @KWIML@_INT_SCNu64 SCNu64
#elif defined(@KWIML@_INT__FMT64) && !defined(@KWIML@_INT__NO_SCN64)
# define @KWIML@_INT_SCNu64 @KWIML@_INT__FMT64 "u"
#endif
654
655
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(PRIx64) \
  && !defined(@KWIML@_INT_BROKEN_PRIx64)
656
657
658
659
# define @KWIML@_INT_PRIx64 PRIx64
#elif defined(@KWIML@_INT__FMT64)
# define @KWIML@_INT_PRIx64 @KWIML@_INT__FMT64 "x"
#endif
660
661
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(SCNx64) \
  && !defined(@KWIML@_INT_BROKEN_SCNx64)
662
663
664
665
# define @KWIML@_INT_SCNx64 SCNx64
#elif defined(@KWIML@_INT__FMT64) && !defined(@KWIML@_INT__NO_SCN64)
# define @KWIML@_INT_SCNx64 @KWIML@_INT__FMT64 "x"
#endif
666
667
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(PRIX64) \
  && !defined(@KWIML@_INT_BROKEN_PRIX64)
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# define @KWIML@_INT_PRIX64 PRIX64
#elif defined(@KWIML@_INT__FMT64)
# define @KWIML@_INT_PRIX64 @KWIML@_INT__FMT64 "X"
#endif

/* 64-bit constants */
#if defined(@KWIML@_INT_HAVE_INT64_T) && defined(INT64_C) \
  && !defined(@KWIML@_INT_BROKEN_INT64_C)
# define @KWIML@_INT_INT64_C(c) INT64_C(c)
#elif @KWIML@_ABI_SIZEOF_LONG == 8
# define @KWIML@_INT_INT64_C(c) c ## l
#elif defined(@KWIML@_ABI_SIZEOF_LONG_LONG) && @KWIML@_ABI_SIZEOF_LONG_LONG == 8
# define @KWIML@_INT_INT64_C(c) c ## ll
#elif defined(@KWIML@_ABI_SIZEOF___INT64)
# define @KWIML@_INT_INT64_C(c) c ## i64
#endif
#if defined(@KWIML@_INT_HAVE_UINT64_T) && defined(UINT64_C) \
  && !defined(@KWIML@_INT_BROKEN_UINT64_C)
# define @KWIML@_INT_UINT64_C(c) UINT64_C(c)
#elif @KWIML@_ABI_SIZEOF_LONG == 8
# define @KWIML@_INT_UINT64_C(c) c ## ul
#elif defined(@KWIML@_ABI_SIZEOF_LONG_LONG) && @KWIML@_ABI_SIZEOF_LONG_LONG == 8
# define @KWIML@_INT_UINT64_C(c) c ## ull
#elif defined(@KWIML@_ABI_SIZEOF___INT64)
# define @KWIML@_INT_UINT64_C(c) c ## ui64
#endif

/*--------------------------------------------------------------------------*/
#if defined(@KWIML@_INT_HAVE_INTPTR_T)
# define @KWIML@_INT_intptr_t intptr_t
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_intptr_t @KWIML@_INT_int32_t
#elif !defined(@KWIML@_INT_NO_INT64_T)
# define @KWIML@_INT_intptr_t @KWIML@_INT_int64_t
#elif defined(@KWIML@_INT_NO_ERROR_INTPTR_T)
# define @KWIML@_INT_NO_INTPTR_T
#else
# error "No type known for 'intptr_t'."
#endif
#if defined(@KWIML@_INT_HAVE_UINTPTR_T)
# define @KWIML@_INT_uintptr_t uintptr_t
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_uintptr_t @KWIML@_INT_uint32_t
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_uintptr_t @KWIML@_INT_uint64_t
#elif defined(@KWIML@_INT_NO_ERROR_UINTPTR_T)
# define @KWIML@_INT_NO_UINTPTR_T
#else
# error "No type known for 'uintptr_t'."
#endif

719
720
#if defined(@KWIML@_INT_HAVE_INTPTR_T) && defined(PRIdPTR) \
  && !defined(@KWIML@_INT_BROKEN_PRIdPTR)
721
722
723
724
725
726
# define @KWIML@_INT_PRIdPTR PRIdPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_PRIdPTR @KWIML@_INT_PRId32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_PRIdPTR @KWIML@_INT_PRId64
#endif
727
728
#if defined(@KWIML@_INT_HAVE_INTPTR_T) && defined(SCNdPTR) \
  && !defined(@KWIML@_INT_BROKEN_SCNdPTR)
729
730
731
732
733
734
# define @KWIML@_INT_SCNdPTR SCNdPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_SCNdPTR @KWIML@_INT_SCNd32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_SCNdPTR @KWIML@_INT_SCNd64
#endif
735
736
#if defined(@KWIML@_INT_HAVE_INTPTR_T) && defined(PRIiPTR) \
  && !defined(@KWIML@_INT_BROKEN_PRIiPTR)
737
738
739
740
741
742
# define @KWIML@_INT_PRIiPTR PRIiPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_PRIiPTR @KWIML@_INT_PRIi32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_PRIiPTR @KWIML@_INT_PRIi64
#endif
743
744
#if defined(@KWIML@_INT_HAVE_INTPTR_T) && defined(SCNiPTR) \
  && !defined(@KWIML@_INT_BROKEN_SCNiPTR)
745
746
747
748
749
750
751
# define @KWIML@_INT_SCNiPTR SCNiPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_SCNiPTR @KWIML@_INT_SCNi32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_SCNiPTR @KWIML@_INT_SCNi64
#endif

752
753
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(PRIoPTR) \
  && !defined(@KWIML@_INT_BROKEN_PRIoPTR)
754
755
756
757
758
759
# define @KWIML@_INT_PRIoPTR PRIoPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_PRIoPTR @KWIML@_INT_PRIo32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_PRIoPTR @KWIML@_INT_PRIo64
#endif
760
761
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(SCNoPTR) \
  && !defined(@KWIML@_INT_BROKEN_SCNoPTR)
762
763
764
765
766
767
# define @KWIML@_INT_SCNoPTR SCNoPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_SCNoPTR @KWIML@_INT_SCNo32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_SCNoPTR @KWIML@_INT_SCNo64
#endif
768
769
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(PRIuPTR) \
  && !defined(@KWIML@_INT_BROKEN_PRIuPTR)
770
771
772
773
774
775
# define @KWIML@_INT_PRIuPTR PRIuPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_PRIuPTR @KWIML@_INT_PRIu32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_PRIuPTR @KWIML@_INT_PRIu64
#endif
776
777
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(SCNuPTR) \
  && !defined(@KWIML@_INT_BROKEN_SCNuPTR)
778
779
780
781
782
783
# define @KWIML@_INT_SCNuPTR SCNuPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_SCNuPTR @KWIML@_INT_SCNu32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_SCNuPTR @KWIML@_INT_SCNu64
#endif
784
785
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(PRIxPTR) \
  && !defined(@KWIML@_INT_BROKEN_PRIxPTR)
786
787
788
789
790
791
# define @KWIML@_INT_PRIxPTR PRIxPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_PRIxPTR @KWIML@_INT_PRIx32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_PRIxPTR @KWIML@_INT_PRIx64
#endif
792
793
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(SCNxPTR) \
  && !defined(@KWIML@_INT_BROKEN_SCNxPTR)
794
795
796
797
798
799
# define @KWIML@_INT_SCNxPTR SCNxPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_SCNxPTR @KWIML@_INT_SCNx32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_SCNxPTR @KWIML@_INT_SCNx64
#endif
800
801
#if defined(@KWIML@_INT_HAVE_UINTPTR_T) && defined(PRIXPTR) \
  && !defined(@KWIML@_INT_BROKEN_PRIXPTR)
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
# define @KWIML@_INT_PRIXPTR PRIXPTR
#elif @KWIML@_ABI_SIZEOF_DATA_PTR == 4
# define @KWIML@_INT_PRIXPTR @KWIML@_INT_PRIX32
#elif !defined(@KWIML@_INT_NO_UINT64_T)
# define @KWIML@_INT_PRIXPTR @KWIML@_INT_PRIX64
#endif

/*--------------------------------------------------------------------------*/
#if !defined(@KWIML@_INT_NO_VERIFY)
#define @KWIML@_INT__VERIFY(n, x, y) extern int (*n)[x]; extern int (*n)[y]
#define @KWIML@_INT__VERIFY_BOOL(m, b) @KWIML@_INT__VERIFY(m##__VERIFY__, 2, (b)?2:3)
#define @KWIML@_INT__VERIFY_TYPE(t, s) @KWIML@_INT__VERIFY(t##__VERIFY__, s, sizeof(t))
#define @KWIML@_INT__VERIFY_SIGN(t, u, o) @KWIML@_INT__VERIFY_BOOL(t##__SIGN, (t)((u)1 << ((sizeof(t)<<3)-1)) o 0)

@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_int8_t,    1);
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_uint8_t,   1);
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_int16_t,   2);
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_uint16_t,  2);
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_int32_t,   4);
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_uint32_t,  4);
#if !defined(@KWIML@_INT_NO_INT64_T)
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_int64_t,   8);
#endif
#if !defined(@KWIML@_INT_NO_UINT64_T)
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_uint64_t,  8);
#endif
#if !defined(@KWIML@_INT_NO_INTPTR_T)
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_intptr_t,  sizeof(void*));
#endif
#if !defined(@KWIML@_INT_NO_UINTPTR_T)
@KWIML@_INT__VERIFY_TYPE(@KWIML@_INT_uintptr_t, sizeof(void*));
#endif

@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_int8_t,    @KWIML@_INT_uint8_t,   <);
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_uint8_t,   @KWIML@_INT_uint8_t,   >);
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_int16_t,   @KWIML@_INT_uint16_t,  <);
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_uint16_t,  @KWIML@_INT_uint16_t,  >);
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_int32_t,   @KWIML@_INT_uint32_t,  <);
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_uint32_t,  @KWIML@_INT_uint32_t,  >);
#if !defined(@KWIML@_INT_NO_INT64_T)
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_int64_t,   @KWIML@_INT_uint64_t,  <);
#endif
#if !defined(@KWIML@_INT_NO_UINT64_T)
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_uint64_t,  @KWIML@_INT_uint64_t,  >);
#endif
#if !defined(@KWIML@_INT_NO_INTPTR_T)
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_intptr_t,  @KWIML@_INT_uintptr_t, <);
#endif
#if !defined(@KWIML@_INT_NO_UINTPTR_T)
@KWIML@_INT__VERIFY_SIGN(@KWIML@_INT_uintptr_t, @KWIML@_INT_uintptr_t, >);
#endif

#undef @KWIML@_INT__VERIFY_SIGN
#undef @KWIML@_INT__VERIFY_TYPE
#undef @KWIML@_INT__VERIFY_BOOL
#undef @KWIML@_INT__VERIFY

#endif

#endif