cinttypes revision 227825
198184Sgordon// -*- C++ -*-
278344Sobrien//===--------------------------- cinttypes --------------------------------===//
3156813Sru//
4156813Sru//                     The LLVM Compiler Infrastructure
5168283Sdes//
6118224Smtm// This file is distributed under the University of Illinois Open Source
7163083Sume// License. See LICENSE.TXT for details.
8162131Semax//
9118224Smtm//===----------------------------------------------------------------------===//
10127345Sbrooks
11118224Smtm#ifndef _LIBCPP_CINTTYPES
12148760Spjd#define _LIBCPP_CINTTYPES
13172080Smlaier
14149053Spjd/*
15151245Semax    cinttypes synopsis
16168546Spjd
17163378SceriThis entire header is C99 / C++0X
18121749Sume
19118224Smtm#include <cstdint>  // <cinttypes> includes <cstdint>
20118224Smtm
21156808SdesMacros:
22171871Smtm
23160975Sdes    PRId8
24158722Sflz    PRId16
25127897Sfjoe    PRId32
26142962Sbrooks    PRId64
27172983Smtm
28118224Smtm    PRIdLEAST8
29158687Sphk    PRIdLEAST16
30151842Syar    PRIdLEAST32
31118224Smtm    PRIdLEAST64
32161529Sflz
33118224Smtm    PRIdFAST8
34151245Semax    PRIdFAST16
35172674Snetchild    PRIdFAST32
36118224Smtm    PRIdFAST64
37127345Sbrooks
38153430Siedowse    PRIdMAX
39137203Sphk    PRIdPTR
40147682Sbrooks
41118224Smtm    PRIi8
42168410Spjd    PRIi16
43168410Spjd    PRIi32
44150490Swollman    PRIi64
45156813Sru
46150490Swollman    PRIiLEAST8
47150490Swollman    PRIiLEAST16
48150490Swollman    PRIiLEAST32
49158115Sume    PRIiLEAST64
50172377Sbushman
51158115Sume    PRIiFAST8
52158115Sume    PRIiFAST16
5378344Sobrien    PRIiFAST32
5478344Sobrien    PRIiFAST64
5578344Sobrien
5678344Sobrien    PRIiMAX
57    PRIiPTR
58
59    PRIo8
60    PRIo16
61    PRIo32
62    PRIo64
63
64    PRIoLEAST8
65    PRIoLEAST16
66    PRIoLEAST32
67    PRIoLEAST64
68
69    PRIoFAST8
70    PRIoFAST16
71    PRIoFAST32
72    PRIoFAST64
73
74    PRIoMAX
75    PRIoPTR
76
77    PRIu8
78    PRIu16
79    PRIu32
80    PRIu64
81
82    PRIuLEAST8
83    PRIuLEAST16
84    PRIuLEAST32
85    PRIuLEAST64
86
87    PRIuFAST8
88    PRIuFAST16
89    PRIuFAST32
90    PRIuFAST64
91
92    PRIuMAX
93    PRIuPTR
94
95    PRIx8
96    PRIx16
97    PRIx32
98    PRIx64
99
100    PRIxLEAST8
101    PRIxLEAST16
102    PRIxLEAST32
103    PRIxLEAST64
104
105    PRIxFAST8
106    PRIxFAST16
107    PRIxFAST32
108    PRIxFAST64
109
110    PRIxMAX
111    PRIxPTR
112
113    PRIX8
114    PRIX16
115    PRIX32
116    PRIX64
117
118    PRIXLEAST8
119    PRIXLEAST16
120    PRIXLEAST32
121    PRIXLEAST64
122
123    PRIXFAST8
124    PRIXFAST16
125    PRIXFAST32
126    PRIXFAST64
127
128    PRIXMAX
129    PRIXPTR
130
131    SCNd8
132    SCNd16
133    SCNd32
134    SCNd64
135
136    SCNdLEAST8
137    SCNdLEAST16
138    SCNdLEAST32
139    SCNdLEAST64
140
141    SCNdFAST8
142    SCNdFAST16
143    SCNdFAST32
144    SCNdFAST64
145
146    SCNdMAX
147    SCNdPTR
148
149    SCNi8
150    SCNi16
151    SCNi32
152    SCNi64
153
154    SCNiLEAST8
155    SCNiLEAST16
156    SCNiLEAST32
157    SCNiLEAST64
158
159    SCNiFAST8
160    SCNiFAST16
161    SCNiFAST32
162    SCNiFAST64
163
164    SCNiMAX
165    SCNiPTR
166
167    SCNo8
168    SCNo16
169    SCNo32
170    SCNo64
171
172    SCNoLEAST8
173    SCNoLEAST16
174    SCNoLEAST32
175    SCNoLEAST64
176
177    SCNoFAST8
178    SCNoFAST16
179    SCNoFAST32
180    SCNoFAST64
181
182    SCNoMAX
183    SCNoPTR
184
185    SCNu8
186    SCNu16
187    SCNu32
188    SCNu64
189
190    SCNuLEAST8
191    SCNuLEAST16
192    SCNuLEAST32
193    SCNuLEAST64
194
195    SCNuFAST8
196    SCNuFAST16
197    SCNuFAST32
198    SCNuFAST64
199
200    SCNuMAX
201    SCNuPTR
202
203    SCNx8
204    SCNx16
205    SCNx32
206    SCNx64
207
208    SCNxLEAST8
209    SCNxLEAST16
210    SCNxLEAST32
211    SCNxLEAST64
212
213    SCNxFAST8
214    SCNxFAST16
215    SCNxFAST32
216    SCNxFAST64
217
218    SCNxMAX
219    SCNxPTR
220
221namespace std
222{
223
224Types:
225
226    imaxdiv_t
227
228intmax_t  imaxabs(intmax_t j);
229imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
230intmax_t  strtoimax(const char* restrict nptr, char** restrict endptr, int base);
231uintmax_t strtoumax(const char* restrict nptr, char** restrict endptr, int base);
232intmax_t  wcstoimax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
233uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
234
235}  // std
236*/
237
238#include <__config>
239#include <cstdint>
240#include <inttypes.h>
241
242#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
243#pragma GCC system_header
244#endif
245
246_LIBCPP_BEGIN_NAMESPACE_STD
247
248using::imaxdiv_t;
249
250using::imaxabs;
251using::imaxdiv;
252using::strtoimax;
253using::strtoumax;
254using::wcstoimax;
255using::wcstoumax;
256
257_LIBCPP_END_NAMESPACE_STD
258
259#endif  // _LIBCPP_CINTTYPES
260