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#include <stdint.h>
146
147#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
148#  pragma GCC system_header
149#endif
150
151_LIBCPP_BEGIN_NAMESPACE_STD
152
153using ::int8_t _LIBCPP_USING_IF_EXISTS;
154using ::int16_t _LIBCPP_USING_IF_EXISTS;
155using ::int32_t _LIBCPP_USING_IF_EXISTS;
156using ::int64_t _LIBCPP_USING_IF_EXISTS;
157
158using ::uint8_t _LIBCPP_USING_IF_EXISTS;
159using ::uint16_t _LIBCPP_USING_IF_EXISTS;
160using ::uint32_t _LIBCPP_USING_IF_EXISTS;
161using ::uint64_t _LIBCPP_USING_IF_EXISTS;
162
163using ::int_least8_t _LIBCPP_USING_IF_EXISTS;
164using ::int_least16_t _LIBCPP_USING_IF_EXISTS;
165using ::int_least32_t _LIBCPP_USING_IF_EXISTS;
166using ::int_least64_t _LIBCPP_USING_IF_EXISTS;
167
168using ::uint_least8_t _LIBCPP_USING_IF_EXISTS;
169using ::uint_least16_t _LIBCPP_USING_IF_EXISTS;
170using ::uint_least32_t _LIBCPP_USING_IF_EXISTS;
171using ::uint_least64_t _LIBCPP_USING_IF_EXISTS;
172
173using ::int_fast8_t _LIBCPP_USING_IF_EXISTS;
174using ::int_fast16_t _LIBCPP_USING_IF_EXISTS;
175using ::int_fast32_t _LIBCPP_USING_IF_EXISTS;
176using ::int_fast64_t _LIBCPP_USING_IF_EXISTS;
177
178using ::uint_fast8_t _LIBCPP_USING_IF_EXISTS;
179using ::uint_fast16_t _LIBCPP_USING_IF_EXISTS;
180using ::uint_fast32_t _LIBCPP_USING_IF_EXISTS;
181using ::uint_fast64_t _LIBCPP_USING_IF_EXISTS;
182
183using ::intptr_t _LIBCPP_USING_IF_EXISTS;
184using ::uintptr_t _LIBCPP_USING_IF_EXISTS;
185
186using ::intmax_t _LIBCPP_USING_IF_EXISTS;
187using ::uintmax_t _LIBCPP_USING_IF_EXISTS;
188
189_LIBCPP_END_NAMESPACE_STD
190
191#endif // _LIBCPP_CSTDINT
192