1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 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 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef _LIBCPP_CSTDINT 11#define _LIBCPP_CSTDINT 12 13/* 14 cstdint synopsis 15 16Macros: 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 99namespace std 100{ 101 102Types: 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 <__assert> // all public C++ headers provide the assertion handler 144#include <__config> 145 146#include <stdint.h> 147 148#ifndef _LIBCPP_STDINT_H 149# error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \ 150 This usually means that your header search paths are not configured properly. \ 151 The header search paths should contain the C++ Standard Library headers before \ 152 any C Standard Library, and you are probably using compiler flags that make that \ 153 not be the case. 154#endif 155 156#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 157# pragma GCC system_header 158#endif 159 160_LIBCPP_BEGIN_NAMESPACE_STD 161 162using ::int8_t _LIBCPP_USING_IF_EXISTS; 163using ::int16_t _LIBCPP_USING_IF_EXISTS; 164using ::int32_t _LIBCPP_USING_IF_EXISTS; 165using ::int64_t _LIBCPP_USING_IF_EXISTS; 166 167using ::uint8_t _LIBCPP_USING_IF_EXISTS; 168using ::uint16_t _LIBCPP_USING_IF_EXISTS; 169using ::uint32_t _LIBCPP_USING_IF_EXISTS; 170using ::uint64_t _LIBCPP_USING_IF_EXISTS; 171 172using ::int_least8_t _LIBCPP_USING_IF_EXISTS; 173using ::int_least16_t _LIBCPP_USING_IF_EXISTS; 174using ::int_least32_t _LIBCPP_USING_IF_EXISTS; 175using ::int_least64_t _LIBCPP_USING_IF_EXISTS; 176 177using ::uint_least8_t _LIBCPP_USING_IF_EXISTS; 178using ::uint_least16_t _LIBCPP_USING_IF_EXISTS; 179using ::uint_least32_t _LIBCPP_USING_IF_EXISTS; 180using ::uint_least64_t _LIBCPP_USING_IF_EXISTS; 181 182using ::int_fast8_t _LIBCPP_USING_IF_EXISTS; 183using ::int_fast16_t _LIBCPP_USING_IF_EXISTS; 184using ::int_fast32_t _LIBCPP_USING_IF_EXISTS; 185using ::int_fast64_t _LIBCPP_USING_IF_EXISTS; 186 187using ::uint_fast8_t _LIBCPP_USING_IF_EXISTS; 188using ::uint_fast16_t _LIBCPP_USING_IF_EXISTS; 189using ::uint_fast32_t _LIBCPP_USING_IF_EXISTS; 190using ::uint_fast64_t _LIBCPP_USING_IF_EXISTS; 191 192using ::intptr_t _LIBCPP_USING_IF_EXISTS; 193using ::uintptr_t _LIBCPP_USING_IF_EXISTS; 194 195using ::intmax_t _LIBCPP_USING_IF_EXISTS; 196using ::uintmax_t _LIBCPP_USING_IF_EXISTS; 197 198_LIBCPP_END_NAMESPACE_STD 199 200#endif // _LIBCPP_CSTDINT 201