2 #ifndef _MACH_MACHLIMITS_H_
4 /* _MACH_MACHLIMITS_H_ is used on OSF/1. */
6 #define _MACH_MACHLIMITS_H_
8 /* Number of bits in a `char'. */
12 /* Maximum length of a multibyte character. */
17 /* Minimum and maximum values a `signed char' can hold. */
19 #define SCHAR_MIN (-128)
23 /* Maximum value an `unsigned char' can hold. (Minimum is 0). */
27 /* Minimum and maximum values a `char' can hold. */
28 #ifdef __CHAR_UNSIGNED__
35 #define CHAR_MIN (-128)
40 /* Minimum and maximum values a `signed short int' can hold. */
42 #define SHRT_MIN (-32768)
44 #define SHRT_MAX 32767
46 /* Maximum value an `unsigned short int' can hold. (Minimum is 0). */
48 #define USHRT_MAX 65535
50 /* Minimum and maximum values a `signed int' can hold. */
52 #define __INT_MAX__ 2147483647
55 #define INT_MIN (-INT_MAX-1)
57 #define INT_MAX __INT_MAX__
59 /* Maximum value an `unsigned int' can hold. (Minimum is 0). */
61 #define UINT_MAX (INT_MAX * 2U + 1)
63 /* Minimum and maximum values a `signed long int' can hold.
67 #define __LONG_MAX__ 2147483647L
69 #define __LONG_MAX__ 9223372036854775807L
70 # endif /* __alpha__ */
73 #define LONG_MIN (-LONG_MAX-1)
75 #define LONG_MAX __LONG_MAX__
77 /* Maximum value an `unsigned long int' can hold. (Minimum is 0). */
79 #define ULONG_MAX (LONG_MAX * 2UL + 1)
81 #if defined (__GNU_LIBRARY__) ? defined (__USE_GNU) : !defined (__STRICT_ANSI__)
82 /* Minimum and maximum values a `signed long long int' can hold. */
83 #ifndef __LONG_LONG_MAX__
84 #define __LONG_LONG_MAX__ 9223372036854775807LL
87 #define LONG_LONG_MIN (-LONG_LONG_MAX-1)
89 #define LONG_LONG_MAX __LONG_LONG_MAX__
91 /* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */
93 #define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1)
96 #endif /* _MACH_MACHLIMITS_H_ */
97 #endif /* _LIMITS_H___ */