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