cstdint 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. // -*- C++ -*-
  2. //===--------------------------- cstdint ----------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is dual licensed under the MIT and the University of Illinois Open
  7. // Source Licenses. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_CSTDINT
  11. #define _LIBCPP_CSTDINT
  12. /*
  13. cstdint synopsis
  14. Macros:
  15. INT8_MIN
  16. INT16_MIN
  17. INT32_MIN
  18. INT64_MIN
  19. INT8_MAX
  20. INT16_MAX
  21. INT32_MAX
  22. INT64_MAX
  23. UINT8_MAX
  24. UINT16_MAX
  25. UINT32_MAX
  26. UINT64_MAX
  27. INT_LEAST8_MIN
  28. INT_LEAST16_MIN
  29. INT_LEAST32_MIN
  30. INT_LEAST64_MIN
  31. INT_LEAST8_MAX
  32. INT_LEAST16_MAX
  33. INT_LEAST32_MAX
  34. INT_LEAST64_MAX
  35. UINT_LEAST8_MAX
  36. UINT_LEAST16_MAX
  37. UINT_LEAST32_MAX
  38. UINT_LEAST64_MAX
  39. INT_FAST8_MIN
  40. INT_FAST16_MIN
  41. INT_FAST32_MIN
  42. INT_FAST64_MIN
  43. INT_FAST8_MAX
  44. INT_FAST16_MAX
  45. INT_FAST32_MAX
  46. INT_FAST64_MAX
  47. UINT_FAST8_MAX
  48. UINT_FAST16_MAX
  49. UINT_FAST32_MAX
  50. UINT_FAST64_MAX
  51. INTPTR_MIN
  52. INTPTR_MAX
  53. UINTPTR_MAX
  54. INTMAX_MIN
  55. INTMAX_MAX
  56. UINTMAX_MAX
  57. PTRDIFF_MIN
  58. PTRDIFF_MAX
  59. SIG_ATOMIC_MIN
  60. SIG_ATOMIC_MAX
  61. SIZE_MAX
  62. WCHAR_MIN
  63. WCHAR_MAX
  64. WINT_MIN
  65. WINT_MAX
  66. INT8_C(value)
  67. INT16_C(value)
  68. INT32_C(value)
  69. INT64_C(value)
  70. UINT8_C(value)
  71. UINT16_C(value)
  72. UINT32_C(value)
  73. UINT64_C(value)
  74. INTMAX_C(value)
  75. UINTMAX_C(value)
  76. namespace std
  77. {
  78. Types:
  79. int8_t
  80. int16_t
  81. int32_t
  82. int64_t
  83. uint8_t
  84. uint16_t
  85. uint32_t
  86. uint64_t
  87. int_least8_t
  88. int_least16_t
  89. int_least32_t
  90. int_least64_t
  91. uint_least8_t
  92. uint_least16_t
  93. uint_least32_t
  94. uint_least64_t
  95. int_fast8_t
  96. int_fast16_t
  97. int_fast32_t
  98. int_fast64_t
  99. uint_fast8_t
  100. uint_fast16_t
  101. uint_fast32_t
  102. uint_fast64_t
  103. intptr_t
  104. uintptr_t
  105. intmax_t
  106. uintmax_t
  107. } // std
  108. */
  109. #include <__config>
  110. #include <stdint.h>
  111. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  112. #pragma GCC system_header
  113. #endif
  114. _LIBCPP_BEGIN_NAMESPACE_STD
  115. using::int8_t;
  116. using::int16_t;
  117. using::int32_t;
  118. using::int64_t;
  119. using::uint8_t;
  120. using::uint16_t;
  121. using::uint32_t;
  122. using::uint64_t;
  123. using::int_least8_t;
  124. using::int_least16_t;
  125. using::int_least32_t;
  126. using::int_least64_t;
  127. using::uint_least8_t;
  128. using::uint_least16_t;
  129. using::uint_least32_t;
  130. using::uint_least64_t;
  131. using::int_fast8_t;
  132. using::int_fast16_t;
  133. using::int_fast32_t;
  134. using::int_fast64_t;
  135. using::uint_fast8_t;
  136. using::uint_fast16_t;
  137. using::uint_fast32_t;
  138. using::uint_fast64_t;
  139. using::intptr_t;
  140. using::uintptr_t;
  141. using::intmax_t;
  142. using::uintmax_t;
  143. _LIBCPP_END_NAMESPACE_STD
  144. #endif // _LIBCPP_CSTDINT