old-libc-kernel/include/limits.h
2016-07-27 15:03:34 +02:00

25 lines
617 B
C

#define CHAR_BIT 8
#define SCHAR_MIN -128
#define SCHAR_MAX 127
#define UCHAR_MAX 255
#define CHAR_MIN -128
#define CHAR_MAX 127
#define MB_LEN_MAX 6
#define SHRT_MIN -32768
#define SHRT_MAX 32767
#define USHR_MAX 65535
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define UINT_MAX 4294967295
#define LLONG_MIN -9223372036854775808lli
#define LLONG_MAX 9223372036854775807lli
#define ULLONG_MAX 18446744073709551615ulli
#ifdef __LP64
#define LONG_MIN LLONG_MIN
#define LONG_MAX LLONG_MAX
#define ULONG_MAX ULLONG_MAX
#else
#define LONG_MIN INT_MIN
#define LONG_MAX INT_MAX
#define ULONG_MAX UINT_MAX
#endif