xref: /openbmc/linux/include/vdso/limits.h (revision ead5d1f4d877e92c051e1a1ade623d0d30e71619)
1*3e0e9f8cSVincenzo Frascino /* SPDX-License-Identifier: GPL-2.0 */
2*3e0e9f8cSVincenzo Frascino #ifndef __VDSO_LIMITS_H
3*3e0e9f8cSVincenzo Frascino #define __VDSO_LIMITS_H
4*3e0e9f8cSVincenzo Frascino 
5*3e0e9f8cSVincenzo Frascino #define USHRT_MAX	((unsigned short)~0U)
6*3e0e9f8cSVincenzo Frascino #define SHRT_MAX	((short)(USHRT_MAX >> 1))
7*3e0e9f8cSVincenzo Frascino #define SHRT_MIN	((short)(-SHRT_MAX - 1))
8*3e0e9f8cSVincenzo Frascino #define INT_MAX		((int)(~0U >> 1))
9*3e0e9f8cSVincenzo Frascino #define INT_MIN		(-INT_MAX - 1)
10*3e0e9f8cSVincenzo Frascino #define UINT_MAX	(~0U)
11*3e0e9f8cSVincenzo Frascino #define LONG_MAX	((long)(~0UL >> 1))
12*3e0e9f8cSVincenzo Frascino #define LONG_MIN	(-LONG_MAX - 1)
13*3e0e9f8cSVincenzo Frascino #define ULONG_MAX	(~0UL)
14*3e0e9f8cSVincenzo Frascino #define LLONG_MAX	((long long)(~0ULL >> 1))
15*3e0e9f8cSVincenzo Frascino #define LLONG_MIN	(-LLONG_MAX - 1)
16*3e0e9f8cSVincenzo Frascino #define ULLONG_MAX	(~0ULL)
17*3e0e9f8cSVincenzo Frascino #define UINTPTR_MAX	ULONG_MAX
18*3e0e9f8cSVincenzo Frascino 
19*3e0e9f8cSVincenzo Frascino #endif /* __VDSO_LIMITS_H */
20