199 lines · plain
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-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCPP_CSTDINT11#define _LIBCPP_CSTDINT12 13/*14 cstdint synopsis15 16Macros:17 18 INT8_MIN19 INT16_MIN20 INT32_MIN21 INT64_MIN22 23 INT8_MAX24 INT16_MAX25 INT32_MAX26 INT64_MAX27 28 UINT8_MAX29 UINT16_MAX30 UINT32_MAX31 UINT64_MAX32 33 INT_LEAST8_MIN34 INT_LEAST16_MIN35 INT_LEAST32_MIN36 INT_LEAST64_MIN37 38 INT_LEAST8_MAX39 INT_LEAST16_MAX40 INT_LEAST32_MAX41 INT_LEAST64_MAX42 43 UINT_LEAST8_MAX44 UINT_LEAST16_MAX45 UINT_LEAST32_MAX46 UINT_LEAST64_MAX47 48 INT_FAST8_MIN49 INT_FAST16_MIN50 INT_FAST32_MIN51 INT_FAST64_MIN52 53 INT_FAST8_MAX54 INT_FAST16_MAX55 INT_FAST32_MAX56 INT_FAST64_MAX57 58 UINT_FAST8_MAX59 UINT_FAST16_MAX60 UINT_FAST32_MAX61 UINT_FAST64_MAX62 63 INTPTR_MIN64 INTPTR_MAX65 UINTPTR_MAX66 67 INTMAX_MIN68 INTMAX_MAX69 70 UINTMAX_MAX71 72 PTRDIFF_MIN73 PTRDIFF_MAX74 75 SIG_ATOMIC_MIN76 SIG_ATOMIC_MAX77 78 SIZE_MAX79 80 WCHAR_MIN81 WCHAR_MAX82 83 WINT_MIN84 WINT_MAX85 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 std100{101 102Types:103 104 int8_t105 int16_t106 int32_t107 int64_t108 109 uint8_t110 uint16_t111 uint32_t112 uint64_t113 114 int_least8_t115 int_least16_t116 int_least32_t117 int_least64_t118 119 uint_least8_t120 uint_least16_t121 uint_least32_t122 uint_least64_t123 124 int_fast8_t125 int_fast16_t126 int_fast32_t127 int_fast64_t128 129 uint_fast8_t130 uint_fast16_t131 uint_fast32_t132 uint_fast64_t133 134 intptr_t135 uintptr_t136 137 intmax_t138 uintmax_t139 140} // std141*/142 143#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)144# include <__cxx03/cstdint>145#else146# include <__config>147 148# if __has_include(<stdint.h>)149# include <stdint.h>150# endif151 152# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)153# pragma GCC system_header154# endif155 156_LIBCPP_BEGIN_NAMESPACE_STD157 158using ::int8_t _LIBCPP_USING_IF_EXISTS;159using ::int16_t _LIBCPP_USING_IF_EXISTS;160using ::int32_t _LIBCPP_USING_IF_EXISTS;161using ::int64_t _LIBCPP_USING_IF_EXISTS;162 163using ::uint8_t _LIBCPP_USING_IF_EXISTS;164using ::uint16_t _LIBCPP_USING_IF_EXISTS;165using ::uint32_t _LIBCPP_USING_IF_EXISTS;166using ::uint64_t _LIBCPP_USING_IF_EXISTS;167 168using ::int_least8_t _LIBCPP_USING_IF_EXISTS;169using ::int_least16_t _LIBCPP_USING_IF_EXISTS;170using ::int_least32_t _LIBCPP_USING_IF_EXISTS;171using ::int_least64_t _LIBCPP_USING_IF_EXISTS;172 173using ::uint_least8_t _LIBCPP_USING_IF_EXISTS;174using ::uint_least16_t _LIBCPP_USING_IF_EXISTS;175using ::uint_least32_t _LIBCPP_USING_IF_EXISTS;176using ::uint_least64_t _LIBCPP_USING_IF_EXISTS;177 178using ::int_fast8_t _LIBCPP_USING_IF_EXISTS;179using ::int_fast16_t _LIBCPP_USING_IF_EXISTS;180using ::int_fast32_t _LIBCPP_USING_IF_EXISTS;181using ::int_fast64_t _LIBCPP_USING_IF_EXISTS;182 183using ::uint_fast8_t _LIBCPP_USING_IF_EXISTS;184using ::uint_fast16_t _LIBCPP_USING_IF_EXISTS;185using ::uint_fast32_t _LIBCPP_USING_IF_EXISTS;186using ::uint_fast64_t _LIBCPP_USING_IF_EXISTS;187 188using ::intptr_t _LIBCPP_USING_IF_EXISTS;189using ::uintptr_t _LIBCPP_USING_IF_EXISTS;190 191using ::intmax_t _LIBCPP_USING_IF_EXISTS;192using ::uintmax_t _LIBCPP_USING_IF_EXISTS;193 194_LIBCPP_END_NAMESPACE_STD195 196#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)197 198#endif // _LIBCPP_CSTDINT199