55 #if __INT_MAX__ == 127
56 # define __USING_MINT8 1
58 # define __USING_MINT8 0
63 #if defined(__DOXYGEN__)
122 typedef signed int int8_t __attribute__((__mode__(__QI__)));
123 typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
124 typedef signed int int16_t __attribute__ ((__mode__ (__HI__)));
125 typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
126 typedef signed int int32_t __attribute__ ((__mode__ (__SI__)));
127 typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));
129 typedef signed int int64_t __attribute__((__mode__(__DI__)));
130 typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
187 #if !__USING_MINT8 || defined(__DOXYGEN__)
241 #if !__USING_MINT8 || defined(__DOXYGEN__)
286 #define __CONCATenate(left, right) left ## right
287 #define __CONCAT(left, right) __CONCATenate(left, right)
290 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
301 #define INT8_MAX 0x7f
306 #define INT8_MIN (-INT8_MAX - 1)
310 #define UINT8_MAX (__CONCAT(INT8_MAX, U) * 2U + 1U)
312 #define INT16_MAX 0x7fffL
313 #define INT16_MIN (-INT16_MAX - 1L)
314 #define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2UL + 1UL)
316 #define INT32_MAX 0x7fffffffLL
317 #define INT32_MIN (-INT32_MAX - 1LL)
318 #define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2ULL + 1ULL)
325 #define UINT8_MAX (INT8_MAX * 2 + 1)
330 #define INT16_MAX 0x7fff
335 #define INT16_MIN (-INT16_MAX - 1)
340 #define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U + 1U)
345 #define INT32_MAX 0x7fffffffL
350 #define INT32_MIN (-INT32_MAX - 1L)
355 #define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2UL + 1UL)
362 #define INT64_MAX 0x7fffffffffffffffLL
367 #define INT64_MIN (-INT64_MAX - 1LL)
372 #define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL)
382 #define INT_LEAST8_MAX INT8_MAX
387 #define INT_LEAST8_MIN INT8_MIN
392 #define UINT_LEAST8_MAX UINT8_MAX
397 #define INT_LEAST16_MAX INT16_MAX
402 #define INT_LEAST16_MIN INT16_MIN
407 #define UINT_LEAST16_MAX UINT16_MAX
412 #define INT_LEAST32_MAX INT32_MAX
417 #define INT_LEAST32_MIN INT32_MIN
422 #define UINT_LEAST32_MAX UINT32_MAX
427 #define INT_LEAST64_MAX INT64_MAX
432 #define INT_LEAST64_MIN INT64_MIN
437 #define UINT_LEAST64_MAX UINT64_MAX
448 #define INT_FAST8_MAX INT8_MAX
453 #define INT_FAST8_MIN INT8_MIN
458 #define UINT_FAST8_MAX UINT8_MAX
463 #define INT_FAST16_MAX INT16_MAX
468 #define INT_FAST16_MIN INT16_MIN
473 #define UINT_FAST16_MAX UINT16_MAX
478 #define INT_FAST32_MAX INT32_MAX
483 #define INT_FAST32_MIN INT32_MIN
488 #define UINT_FAST32_MAX UINT32_MAX
493 #define INT_FAST64_MAX INT64_MAX
498 #define INT_FAST64_MIN INT64_MIN
503 #define UINT_FAST64_MAX UINT64_MAX
514 #define INTPTR_MAX INT16_MAX
519 #define INTPTR_MIN INT16_MIN
524 #define UINTPTR_MAX UINT16_MAX
535 #define INTMAX_MAX INT64_MAX
540 #define INTMAX_MIN INT64_MIN
545 #define UINTMAX_MAX UINT64_MAX
558 #define PTRDIFF_MAX INT16_MAX
563 #define PTRDIFF_MIN INT16_MIN
572 #define SIG_ATOMIC_MAX INT8_MAX
577 #define SIG_ATOMIC_MIN INT8_MIN
583 #define SIZE_MAX UINT16_MAX
595 #define WCHAR_MAX __WCHAR_MAX__
596 #define WCHAR_MIN __WCHAR_MIN__
599 #define WINT_MAX __WINT_MAX__
600 #define WINT_MIN __WINT_MIN__
606 #if (!defined __cplusplus || __cplusplus >= 201103L \
607 || defined __STDC_CONSTANT_MACROS)
619 #define INT8_C(c) __INT8_C(c)
620 #define INT16_C(c) __INT16_C(c)
621 #define INT32_C(c) __INT32_C(c)
622 #define INT64_C(c) __INT64_C(c)
623 #define UINT8_C(c) __UINT8_C(c)
624 #define UINT16_C(c) __UINT16_C(c)
625 #define UINT32_C(c) __UINT32_C(c)
626 #define UINT64_C(c) __UINT64_C(c)
627 #define INTMAX_C(c) __INTMAX_C(c)
628 #define UINTMAX_C(c) __UINTMAX_C(c)
633 #define INT8_C(value) ((int8_t) value)
638 #define UINT8_C(value) ((uint8_t) __CONCAT(value, U))
642 #define INT16_C(value) __CONCAT(value, L)
643 #define UINT16_C(value) __CONCAT(value, UL)
645 #define INT32_C(value) ((int32_t) __CONCAT(value, LL))
646 #define UINT32_C(value) ((uint32_t) __CONCAT(value, ULL))
653 #define INT16_C(value) value
658 #define UINT16_C(value) __CONCAT(value, U)
663 #define INT32_C(value) __CONCAT(value, L)
668 #define UINT32_C(value) __CONCAT(value, UL)
675 #define INT64_C(value) __CONCAT(value, LL)
680 #define UINT64_C(value) __CONCAT(value, ULL)
685 #define INTMAX_C(value) __CONCAT(value, LL)
690 #define UINTMAX_C(value) __CONCAT(value, ULL)
int16_t intptr_t
Definition: stdint.h:143
signed long long int int64_t
Definition: stdint.h:107
uint64_t uint_least64_t
Definition: stdint.h:200
uint64_t uint_fast64_t
Definition: stdint.h:254
int64_t int_fast64_t
Definition: stdint.h:247
int32_t int_fast32_t
Definition: stdint.h:234
signed int int16_t
Definition: stdint.h:85
signed char int8_t
Definition: stdint.h:75
uint64_t uintmax_t
Definition: stdint.h:279
int32_t int_least32_t
Definition: stdint.h:180
signed long int int32_t
Definition: stdint.h:95
int8_t int_least8_t
Definition: stdint.h:160
int64_t int_least64_t
Definition: stdint.h:193
int8_t int_fast8_t
Definition: stdint.h:214
uint16_t uint_fast16_t
Definition: stdint.h:229
uint16_t uintptr_t
Definition: stdint.h:148
unsigned char uint8_t
Definition: stdint.h:80
unsigned long int uint32_t
Definition: stdint.h:100
uint8_t uint_fast8_t
Definition: stdint.h:219
uint16_t uint_least16_t
Definition: stdint.h:175
uint32_t uint_fast32_t
Definition: stdint.h:239
uint32_t uint_least32_t
Definition: stdint.h:185
unsigned long long int uint64_t
Definition: stdint.h:114
int64_t intmax_t
Definition: stdint.h:274
uint8_t uint_least8_t
Definition: stdint.h:165
int16_t int_least16_t
Definition: stdint.h:170
unsigned int uint16_t
Definition: stdint.h:90
int16_t int_fast16_t
Definition: stdint.h:224