limits.h 638 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WAMR_LIBC_LIMITS_H
  6. #define _WAMR_LIBC_LIMITS_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #define CHAR_BIT 8
  11. #define SCHAR_MIN -128
  12. #define SCHAR_MAX 127
  13. #define UCHAR_MAX 255
  14. #define CHAR_MIN 0
  15. #define CHAR_MAX 127
  16. #define MB_LEN_MAX 1
  17. #define SHRT_MIN -32768
  18. #define SHRT_MAX +32767
  19. #define USHRT_MAX 65535
  20. #define INT_MIN -32768
  21. #define INT_MAX +32767
  22. #define UINT_MAX 65535
  23. #define LONG_MIN -2147483648
  24. #define LONG_MAX +2147483647
  25. #define ULONG_MAX 4294967295
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif