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