Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- cstdint ----------------------------------===// |
| 3 | // |
Chandler Carruth | 7c3769d | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | // See https://llvm.org/LICENSE.txt for license information. |
| 6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef _LIBCPP_CSTDINT |
| 11 | #define _LIBCPP_CSTDINT |
| 12 | |
| 13 | /* |
| 14 | cstdint synopsis |
| 15 | |
| 16 | Macros: |
| 17 | |
| 18 | INT8_MIN |
| 19 | INT16_MIN |
| 20 | INT32_MIN |
| 21 | INT64_MIN |
| 22 | |
| 23 | INT8_MAX |
| 24 | INT16_MAX |
| 25 | INT32_MAX |
| 26 | INT64_MAX |
| 27 | |
| 28 | UINT8_MAX |
| 29 | UINT16_MAX |
| 30 | UINT32_MAX |
| 31 | UINT64_MAX |
| 32 | |
| 33 | INT_LEAST8_MIN |
| 34 | INT_LEAST16_MIN |
| 35 | INT_LEAST32_MIN |
| 36 | INT_LEAST64_MIN |
| 37 | |
| 38 | INT_LEAST8_MAX |
| 39 | INT_LEAST16_MAX |
| 40 | INT_LEAST32_MAX |
| 41 | INT_LEAST64_MAX |
| 42 | |
| 43 | UINT_LEAST8_MAX |
| 44 | UINT_LEAST16_MAX |
| 45 | UINT_LEAST32_MAX |
| 46 | UINT_LEAST64_MAX |
| 47 | |
| 48 | INT_FAST8_MIN |
| 49 | INT_FAST16_MIN |
| 50 | INT_FAST32_MIN |
| 51 | INT_FAST64_MIN |
| 52 | |
| 53 | INT_FAST8_MAX |
| 54 | INT_FAST16_MAX |
| 55 | INT_FAST32_MAX |
| 56 | INT_FAST64_MAX |
| 57 | |
| 58 | UINT_FAST8_MAX |
| 59 | UINT_FAST16_MAX |
| 60 | UINT_FAST32_MAX |
| 61 | UINT_FAST64_MAX |
| 62 | |
| 63 | INTPTR_MIN |
| 64 | INTPTR_MAX |
| 65 | UINTPTR_MAX |
| 66 | |
| 67 | INTMAX_MIN |
| 68 | INTMAX_MAX |
| 69 | |
| 70 | UINTMAX_MAX |
| 71 | |
| 72 | PTRDIFF_MIN |
| 73 | PTRDIFF_MAX |
| 74 | |
| 75 | SIG_ATOMIC_MIN |
| 76 | SIG_ATOMIC_MAX |
| 77 | |
| 78 | SIZE_MAX |
| 79 | |
| 80 | WCHAR_MIN |
| 81 | WCHAR_MAX |
| 82 | |
| 83 | WINT_MIN |
| 84 | WINT_MAX |
| 85 | |
| 86 | INT8_C(value) |
| 87 | INT16_C(value) |
| 88 | INT32_C(value) |
| 89 | INT64_C(value) |
| 90 | |
| 91 | UINT8_C(value) |
| 92 | UINT16_C(value) |
| 93 | UINT32_C(value) |
| 94 | UINT64_C(value) |
| 95 | |
| 96 | INTMAX_C(value) |
| 97 | UINTMAX_C(value) |
| 98 | |
| 99 | namespace std |
| 100 | { |
| 101 | |
| 102 | Types: |
| 103 | |
| 104 | int8_t |
| 105 | int16_t |
| 106 | int32_t |
| 107 | int64_t |
| 108 | |
| 109 | uint8_t |
| 110 | uint16_t |
| 111 | uint32_t |
| 112 | uint64_t |
| 113 | |
| 114 | int_least8_t |
| 115 | int_least16_t |
| 116 | int_least32_t |
| 117 | int_least64_t |
| 118 | |
| 119 | uint_least8_t |
| 120 | uint_least16_t |
| 121 | uint_least32_t |
| 122 | uint_least64_t |
| 123 | |
| 124 | int_fast8_t |
| 125 | int_fast16_t |
| 126 | int_fast32_t |
| 127 | int_fast64_t |
| 128 | |
| 129 | uint_fast8_t |
| 130 | uint_fast16_t |
| 131 | uint_fast32_t |
| 132 | uint_fast64_t |
| 133 | |
| 134 | intptr_t |
| 135 | uintptr_t |
| 136 | |
| 137 | intmax_t |
| 138 | uintmax_t |
| 139 | |
| 140 | } // std |
| 141 | */ |
| 142 | |
| 143 | #include <__config> |
| 144 | #include <stdint.h> |
| 145 | |
Howard Hinnant | 08e1747 | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 146 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 147 | #pragma GCC system_header |
Howard Hinnant | 08e1747 | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 148 | #endif |
Howard Hinnant | bc8d3f9 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 149 | |
| 150 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 151 | |
| 152 | using::int8_t; |
| 153 | using::int16_t; |
| 154 | using::int32_t; |
| 155 | using::int64_t; |
| 156 | |
| 157 | using::uint8_t; |
| 158 | using::uint16_t; |
| 159 | using::uint32_t; |
| 160 | using::uint64_t; |
| 161 | |
| 162 | using::int_least8_t; |
| 163 | using::int_least16_t; |
| 164 | using::int_least32_t; |
| 165 | using::int_least64_t; |
| 166 | |
| 167 | using::uint_least8_t; |
| 168 | using::uint_least16_t; |
| 169 | using::uint_least32_t; |
| 170 | using::uint_least64_t; |
| 171 | |
| 172 | using::int_fast8_t; |
| 173 | using::int_fast16_t; |
| 174 | using::int_fast32_t; |
| 175 | using::int_fast64_t; |
| 176 | |
| 177 | using::uint_fast8_t; |
| 178 | using::uint_fast16_t; |
| 179 | using::uint_fast32_t; |
| 180 | using::uint_fast64_t; |
| 181 | |
| 182 | using::intptr_t; |
| 183 | using::uintptr_t; |
| 184 | |
| 185 | using::intmax_t; |
| 186 | using::uintmax_t; |
| 187 | |
| 188 | _LIBCPP_END_NAMESPACE_STD |
| 189 | |
| 190 | #endif // _LIBCPP_CSTDINT |