xref: /DragonStub/inc/dragonstub/limits.h (revision 3e6106c4d60a23aae3c0740979c5e6fb728b63c3)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __VDSO_LIMITS_H
3 #define __VDSO_LIMITS_H
4 
5 
6 #define CHAR_BIT 8
7 #define SCHAR_MIN (-128)
8 #define SCHAR_MAX 127
9 #define UCHAR_MAX 255
10 
11 #define MB_LEN_MAX 4
12 #define USHRT_MAX	((unsigned short)~0U)
13 #define SHRT_MAX	((short)(USHRT_MAX >> 1))
14 #define SHRT_MIN	((short)(-SHRT_MAX - 1))
15 #define INT_MAX		((int)(~0U >> 1))
16 #define INT_MIN		(-INT_MAX - 1)
17 #define UINT_MAX	(~0U)
18 #define LONG_MAX	((long)(~0UL >> 1))
19 #define LONG_MIN	(-LONG_MAX - 1)
20 #define ULONG_MAX	(~0UL)
21 #define LLONG_MAX	((long long)(~0ULL >> 1))
22 #define LLONG_MIN	(-LLONG_MAX - 1)
23 #define ULLONG_MAX	(~0ULL)
24 #define UINTPTR_MAX	ULONG_MAX
25 
26 #endif /* __VDSO_LIMITS_H */
27