35 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
36 #if __STDC_VERSION__ >= 199901L
37 #define __SDCC_LONGLONG
46 #ifdef __SDCC_LONGLONG
47 typedef long long int int64_t;
54 #ifdef __SDCC_LONGLONG
55 typedef unsigned long long int uint64_t;
64 #ifdef __SDCC_LONGLONG
65 typedef long long int int_least64_t;
72 #ifdef __SDCC_LONGLONG
73 typedef unsigned long long int uint_least64_t;
82 #ifdef __SDCC_LONGLONG
83 typedef long long int int_fast64_t;
90 #ifdef __SDCC_LONGLONG
91 typedef unsigned long long int uint_fast64_t;
95 #if defined (__SDCC_mcs51) || defined (__SDCC_ds390)
105 #ifndef __SDCC_LONGLONG
110 typedef unsigned long long int uintmax_t;
116 #define INT8_MIN (-128)
117 #define INT16_MIN (-32767-1)
118 #define INT32_MIN (-2147483647L-1)
119 #ifdef __SDCC_LONGLONG
120 #define INT64_MIN (-9223372036854775807LL-1)
124 #define INT8_MAX (127)
125 #define INT16_MAX (32767)
126 #define INT32_MAX (2147483647L)
127 #ifdef __SDCC_LONGLONG
128 #define INT64_MAX (9223372036854775807LL)
132 #define UINT8_MAX (255)
133 #define UINT16_MAX (65535)
134 #define UINT32_MAX (4294967295UL)
135 #ifdef __SDCC_LONGLONG
136 #define UINT64_MAX (18446744073709551615ULL)
140 #define INT_LEAST8_MIN INT8_MIN
141 #define INT_LEAST16_MIN INT16_MIN
142 #define INT_LEAST32_MIN INT32_MIN
143 #ifdef __SDCC_LONGLONG
144 #define INT_LEAST64_MIN INT64_MIN
148 #define INT_LEAST8_MAX INT8_MAX
149 #define INT_LEAST16_MAX INT16_MAX
150 #define INT_LEAST32_MAX INT32_MAX
151 #ifdef __SDCC_LONGLONG
152 #define INT_LEAST64_MAX INT64_MAX
156 #define UINT_LEAST8_MAX UINT8_MAX
157 #define UINT_LEAST16_MAX UINT16_MAX
158 #define UINT_LEAST32_MAX UINT32_MAX
159 #ifdef __SDCC_LONGLONG
160 #define UINT_LEAST64_MAX UINT64_MAX
164 #define INT_FAST8_MIN INT8_MIN
165 #define INT_FAST16_MIN INT16_MIN
166 #define INT_FAST32_MIN INT32_MIN
167 #ifdef __SDCC_LONGLONG
168 #define INT_FAST64_MIN INT64_MIN
172 #define INT_FAST8_MAX INT8_MAX
173 #define INT_FAST16_MAX INT16_MAX
174 #define INT_FAST32_MAX INT32_MAX
175 #ifdef __SDCC_LONGLONG
176 #define INT_FAST64_MAX INT64_MAX
180 #define UINT_FAST8_MAX UINT8_MAX
181 #define UINT_FAST16_MAX UINT16_MAX
182 #define UINT_FAST32_MAX UINT32_MAX
183 #ifdef __SDCC_LONGLONG
184 #define UINT_FAST64_MAX UINT64_MAX
188 #if defined (__SDCC_mcs51) || defined (__SDCC_ds390)
189 #define INTPTR_MIN (-2147483647L-1)
190 #define INTPTR_MAX (2147483647L)
191 #define UINTPTR_MAX (4294967295UL)
193 #define INTPTR_MIN (-32767-1)
194 #define INTPTR_MAX (32767)
195 #define UINTPTR_MAX (65535)
199 #ifndef __SDCC_LONGLONG
200 #define INTMAX_MIN (-2147483647L-1)
202 #define INTMAX_MIN (-9223372036854775807LL-1)
206 #ifndef __SDCC_LONGLONG
207 #define INTMAX_MAX (2147483647L)
209 #define INTMAX_MAX (9223372036854775807LL)
213 #ifndef __SDCC_LONGLONG
214 #define UINTMAX_MAX (4294967295UL)
216 #define UINTMAX_MAX (18446744073709551615ULL)
222 #if defined (__SDCC_mcs51) || defined (__SDCC_ds390)
223 #define PTRDIFF_MIN (-2147483647L-1)
224 #define PTRDIFF_MAX (2147483647L)
226 #define PTRDIFF_MIN (-32767-1)
227 #define PTRDIFF_MAX (32767)
231 #define SIG_ATOMIC_MIN (0)
232 #define SIG_ATOMIC_MAX (255)
235 #define SIZE_MAX (65535u)
240 #define INT32_C(c) c ## L
241 #ifdef __SDCC_LONGLONG
242 #define INT64_C(c) c ## LL
246 #define UINT8_C(c) c ## U
247 #define UINT16_C(c) c ## U
248 #define UINT32_C(c) c ## UL
249 #ifdef __SDCC_LONGLONG
250 #define UINT64_C(c) c ## ULL
254 #define WCHAR_MAX 0xffffffff
257 #define WINT_MAX 0xffffffff
260 #ifdef __SDCC_LONGLONG
261 #define INTMAX_C(c) c ## LL
262 #define UINTMAX_C(c) c ## ULL
264 #define INTMAX_C(c) c ## L
265 #define UINTMAX_C(c) c ## UL
269 #if defined (__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__
270 #define RSIZE_MAX SIZE_MAX
int intptr_t
Definition: stdint.h:99
unsigned short int uint_least16_t
Definition: stdint.h:70
unsigned long int uint_least32_t
Definition: stdint.h:71
long int int_fast32_t
Definition: stdint.h:81
unsigned long int uintmax_t
Definition: stdint.h:107
unsigned int uint_fast16_t
Definition: stdint.h:88
unsigned char uint_fast8_t
Definition: stdint.h:87
unsigned long int uint32_t
Definition: stdint.h:53
short int int_least16_t
Definition: stdint.h:62
long int int_least32_t
Definition: stdint.h:63
short int int16_t
Definition: stdint.h:44
unsigned int uintptr_t
Definition: stdint.h:100
long int int32_t
Definition: stdint.h:45
unsigned long int uint_fast32_t
Definition: stdint.h:89
long int intmax_t
Definition: stdint.h:106
unsigned char uint_least8_t
Definition: stdint.h:69
unsigned char uint8_t
Definition: stdint.h:51
unsigned short int uint16_t
Definition: stdint.h:52
signed char int_least8_t
Definition: stdint.h:61
signed char int8_t
Definition: stdint.h:43
signed char int_fast8_t
Definition: stdint.h:79
int int_fast16_t
Definition: stdint.h:80