limits.h 564 B

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