limits.h 675 B

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