1570af302Sopenharmony_ci#ifndef _STDINT_H 2570af302Sopenharmony_ci#define _STDINT_H 3570af302Sopenharmony_ci 4570af302Sopenharmony_ci#define __NEED_int8_t 5570af302Sopenharmony_ci#define __NEED_int16_t 6570af302Sopenharmony_ci#define __NEED_int32_t 7570af302Sopenharmony_ci#define __NEED_int64_t 8570af302Sopenharmony_ci 9570af302Sopenharmony_ci#define __NEED_uint8_t 10570af302Sopenharmony_ci#define __NEED_uint16_t 11570af302Sopenharmony_ci#define __NEED_uint32_t 12570af302Sopenharmony_ci#define __NEED_uint64_t 13570af302Sopenharmony_ci 14570af302Sopenharmony_ci#define __NEED_intptr_t 15570af302Sopenharmony_ci#define __NEED_uintptr_t 16570af302Sopenharmony_ci 17570af302Sopenharmony_ci#define __NEED_intmax_t 18570af302Sopenharmony_ci#define __NEED_uintmax_t 19570af302Sopenharmony_ci 20570af302Sopenharmony_ci#include <bits/alltypes.h> 21570af302Sopenharmony_ci 22570af302Sopenharmony_citypedef int8_t int_fast8_t; 23570af302Sopenharmony_citypedef int64_t int_fast64_t; 24570af302Sopenharmony_ci 25570af302Sopenharmony_citypedef int8_t int_least8_t; 26570af302Sopenharmony_citypedef int16_t int_least16_t; 27570af302Sopenharmony_citypedef int32_t int_least32_t; 28570af302Sopenharmony_citypedef int64_t int_least64_t; 29570af302Sopenharmony_ci 30570af302Sopenharmony_citypedef uint8_t uint_fast8_t; 31570af302Sopenharmony_citypedef uint64_t uint_fast64_t; 32570af302Sopenharmony_ci 33570af302Sopenharmony_citypedef uint8_t uint_least8_t; 34570af302Sopenharmony_citypedef uint16_t uint_least16_t; 35570af302Sopenharmony_citypedef uint32_t uint_least32_t; 36570af302Sopenharmony_citypedef uint64_t uint_least64_t; 37570af302Sopenharmony_ci 38570af302Sopenharmony_ci#define INT8_MIN (-1-0x7f) 39570af302Sopenharmony_ci#define INT16_MIN (-1-0x7fff) 40570af302Sopenharmony_ci#define INT32_MIN (-1-0x7fffffff) 41570af302Sopenharmony_ci#define INT64_MIN (-1-0x7fffffffffffffff) 42570af302Sopenharmony_ci 43570af302Sopenharmony_ci#define INT8_MAX (0x7f) 44570af302Sopenharmony_ci#define INT16_MAX (0x7fff) 45570af302Sopenharmony_ci#define INT32_MAX (0x7fffffff) 46570af302Sopenharmony_ci#define INT64_MAX (0x7fffffffffffffff) 47570af302Sopenharmony_ci 48570af302Sopenharmony_ci#define UINT8_MAX (0xff) 49570af302Sopenharmony_ci#define UINT16_MAX (0xffff) 50570af302Sopenharmony_ci#define UINT32_MAX (0xffffffffu) 51570af302Sopenharmony_ci#define UINT64_MAX (0xffffffffffffffffu) 52570af302Sopenharmony_ci 53570af302Sopenharmony_ci#define INT_FAST8_MIN INT8_MIN 54570af302Sopenharmony_ci#define INT_FAST64_MIN INT64_MIN 55570af302Sopenharmony_ci 56570af302Sopenharmony_ci#define INT_LEAST8_MIN INT8_MIN 57570af302Sopenharmony_ci#define INT_LEAST16_MIN INT16_MIN 58570af302Sopenharmony_ci#define INT_LEAST32_MIN INT32_MIN 59570af302Sopenharmony_ci#define INT_LEAST64_MIN INT64_MIN 60570af302Sopenharmony_ci 61570af302Sopenharmony_ci#define INT_FAST8_MAX INT8_MAX 62570af302Sopenharmony_ci#define INT_FAST64_MAX INT64_MAX 63570af302Sopenharmony_ci 64570af302Sopenharmony_ci#define INT_LEAST8_MAX INT8_MAX 65570af302Sopenharmony_ci#define INT_LEAST16_MAX INT16_MAX 66570af302Sopenharmony_ci#define INT_LEAST32_MAX INT32_MAX 67570af302Sopenharmony_ci#define INT_LEAST64_MAX INT64_MAX 68570af302Sopenharmony_ci 69570af302Sopenharmony_ci#define UINT_FAST8_MAX UINT8_MAX 70570af302Sopenharmony_ci#define UINT_FAST64_MAX UINT64_MAX 71570af302Sopenharmony_ci 72570af302Sopenharmony_ci#define UINT_LEAST8_MAX UINT8_MAX 73570af302Sopenharmony_ci#define UINT_LEAST16_MAX UINT16_MAX 74570af302Sopenharmony_ci#define UINT_LEAST32_MAX UINT32_MAX 75570af302Sopenharmony_ci#define UINT_LEAST64_MAX UINT64_MAX 76570af302Sopenharmony_ci 77570af302Sopenharmony_ci#define INTMAX_MIN INT64_MIN 78570af302Sopenharmony_ci#define INTMAX_MAX INT64_MAX 79570af302Sopenharmony_ci#define UINTMAX_MAX UINT64_MAX 80570af302Sopenharmony_ci 81570af302Sopenharmony_ci#define WINT_MIN 0U 82570af302Sopenharmony_ci#define WINT_MAX UINT32_MAX 83570af302Sopenharmony_ci 84570af302Sopenharmony_ci#if L'\0'-1 > 0 85570af302Sopenharmony_ci#define WCHAR_MAX (0xffffffffu+L'\0') 86570af302Sopenharmony_ci#define WCHAR_MIN (0+L'\0') 87570af302Sopenharmony_ci#else 88570af302Sopenharmony_ci#define WCHAR_MAX (0x7fffffff+L'\0') 89570af302Sopenharmony_ci#define WCHAR_MIN (-1-0x7fffffff+L'\0') 90570af302Sopenharmony_ci#endif 91570af302Sopenharmony_ci 92570af302Sopenharmony_ci#define SIG_ATOMIC_MIN INT32_MIN 93570af302Sopenharmony_ci#define SIG_ATOMIC_MAX INT32_MAX 94570af302Sopenharmony_ci 95570af302Sopenharmony_ci#include <bits/stdint.h> 96570af302Sopenharmony_ci 97570af302Sopenharmony_ci#define INT8_C(c) c 98570af302Sopenharmony_ci#define INT16_C(c) c 99570af302Sopenharmony_ci#define INT32_C(c) c 100570af302Sopenharmony_ci 101570af302Sopenharmony_ci#define UINT8_C(c) c 102570af302Sopenharmony_ci#define UINT16_C(c) c 103570af302Sopenharmony_ci#define UINT32_C(c) c ## U 104570af302Sopenharmony_ci 105570af302Sopenharmony_ci#if UINTPTR_MAX == UINT64_MAX 106570af302Sopenharmony_ci#define INT64_C(c) c ## L 107570af302Sopenharmony_ci#define UINT64_C(c) c ## UL 108570af302Sopenharmony_ci#define INTMAX_C(c) c ## L 109570af302Sopenharmony_ci#define UINTMAX_C(c) c ## UL 110570af302Sopenharmony_ci#else 111570af302Sopenharmony_ci#define INT64_C(c) c ## LL 112570af302Sopenharmony_ci#define UINT64_C(c) c ## ULL 113570af302Sopenharmony_ci#define INTMAX_C(c) c ## LL 114570af302Sopenharmony_ci#define UINTMAX_C(c) c ## ULL 115570af302Sopenharmony_ci#endif 116570af302Sopenharmony_ci 117570af302Sopenharmony_ci#endif 118