Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | /* Number of bits in a `char'. */ |
2 | #define CHAR_BIT 8 | |
3 | ||
4 | /* No multibyte characters supported yet. */ | |
5 | #define MB_LEN_MAX 1 | |
6 | ||
7 | /* Minimum and maximum values a `signed char' can hold. */ | |
8 | #define SCHAR_MIN (-128) | |
9 | #define SCHAR_MAX 127 | |
10 | ||
11 | /* Maximum value an `unsigned char' can hold. (Minimum is 0). */ | |
12 | #define UCHAR_MAX 255U | |
13 | ||
14 | /* Minimum and maximum values a `char' can hold. */ | |
15 | #ifdef __CHAR_UNSIGNED__ | |
16 | #define CHAR_MIN 0 | |
17 | #define CHAR_MAX 255U | |
18 | #else | |
19 | #define CHAR_MIN (-128) | |
20 | #define CHAR_MAX 127 | |
21 | #endif | |
22 | ||
23 | /* Minimum and maximum values a `signed short int' can hold. */ | |
24 | #define SHRT_MIN (-32768) | |
25 | #define SHRT_MAX 32767 | |
26 | ||
27 | /* Maximum value an `unsigned short int' can hold. (Minimum is 0). */ | |
28 | #define USHRT_MAX 65535U | |
29 | ||
30 | /* Minimum and maximum values a `signed int' can hold. */ | |
31 | #define INT_MIN (-INT_MAX-1) | |
32 | #define INT_MAX 2147483647 | |
33 | ||
34 | /* Maximum value an `unsigned int' can hold. (Minimum is 0). */ | |
35 | #define UINT_MAX 4294967295U | |
36 | ||
37 | /* Minimum and maximum values a `signed long int' can hold. | |
38 | (Same as `int'). */ | |
39 | #define LONG_MIN (-LONG_MAX-1) | |
40 | #define LONG_MAX 2147483647 | |
41 | ||
42 | /* Maximum value an `unsigned long int' can hold. (Minimum is 0). */ | |
43 | #define ULONG_MAX 4294967295U |