[LoongArch] Fix incorrect pattern [X]VBITSELI_B instructions
[llvm-project.git] / libcxx / include / inttypes.h
blob8664412bd52ffce0331a4c68467bb64ccf608748
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 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_INTTYPES_H
11 // AIX system headers need inttypes.h to be re-enterable while _STD_TYPES_T
12 // is defined until an inclusion of it without _STD_TYPES_T occurs, in which
13 // case the header guard macro is defined.
14 #if !defined(_AIX) || !defined(_STD_TYPES_T)
15 # define _LIBCPP_INTTYPES_H
16 #endif // _STD_TYPES_T
19 inttypes.h synopsis
21 This entire header is C99 / C++0X
23 #include <stdint.h> // <cinttypes> includes <cstdint>
25 Macros:
27 PRId8
28 PRId16
29 PRId32
30 PRId64
32 PRIdLEAST8
33 PRIdLEAST16
34 PRIdLEAST32
35 PRIdLEAST64
37 PRIdFAST8
38 PRIdFAST16
39 PRIdFAST32
40 PRIdFAST64
42 PRIdMAX
43 PRIdPTR
45 PRIi8
46 PRIi16
47 PRIi32
48 PRIi64
50 PRIiLEAST8
51 PRIiLEAST16
52 PRIiLEAST32
53 PRIiLEAST64
55 PRIiFAST8
56 PRIiFAST16
57 PRIiFAST32
58 PRIiFAST64
60 PRIiMAX
61 PRIiPTR
63 PRIo8
64 PRIo16
65 PRIo32
66 PRIo64
68 PRIoLEAST8
69 PRIoLEAST16
70 PRIoLEAST32
71 PRIoLEAST64
73 PRIoFAST8
74 PRIoFAST16
75 PRIoFAST32
76 PRIoFAST64
78 PRIoMAX
79 PRIoPTR
81 PRIu8
82 PRIu16
83 PRIu32
84 PRIu64
86 PRIuLEAST8
87 PRIuLEAST16
88 PRIuLEAST32
89 PRIuLEAST64
91 PRIuFAST8
92 PRIuFAST16
93 PRIuFAST32
94 PRIuFAST64
96 PRIuMAX
97 PRIuPTR
99 PRIx8
100 PRIx16
101 PRIx32
102 PRIx64
104 PRIxLEAST8
105 PRIxLEAST16
106 PRIxLEAST32
107 PRIxLEAST64
109 PRIxFAST8
110 PRIxFAST16
111 PRIxFAST32
112 PRIxFAST64
114 PRIxMAX
115 PRIxPTR
117 PRIX8
118 PRIX16
119 PRIX32
120 PRIX64
122 PRIXLEAST8
123 PRIXLEAST16
124 PRIXLEAST32
125 PRIXLEAST64
127 PRIXFAST8
128 PRIXFAST16
129 PRIXFAST32
130 PRIXFAST64
132 PRIXMAX
133 PRIXPTR
135 SCNd8
136 SCNd16
137 SCNd32
138 SCNd64
140 SCNdLEAST8
141 SCNdLEAST16
142 SCNdLEAST32
143 SCNdLEAST64
145 SCNdFAST8
146 SCNdFAST16
147 SCNdFAST32
148 SCNdFAST64
150 SCNdMAX
151 SCNdPTR
153 SCNi8
154 SCNi16
155 SCNi32
156 SCNi64
158 SCNiLEAST8
159 SCNiLEAST16
160 SCNiLEAST32
161 SCNiLEAST64
163 SCNiFAST8
164 SCNiFAST16
165 SCNiFAST32
166 SCNiFAST64
168 SCNiMAX
169 SCNiPTR
171 SCNo8
172 SCNo16
173 SCNo32
174 SCNo64
176 SCNoLEAST8
177 SCNoLEAST16
178 SCNoLEAST32
179 SCNoLEAST64
181 SCNoFAST8
182 SCNoFAST16
183 SCNoFAST32
184 SCNoFAST64
186 SCNoMAX
187 SCNoPTR
189 SCNu8
190 SCNu16
191 SCNu32
192 SCNu64
194 SCNuLEAST8
195 SCNuLEAST16
196 SCNuLEAST32
197 SCNuLEAST64
199 SCNuFAST8
200 SCNuFAST16
201 SCNuFAST32
202 SCNuFAST64
204 SCNuMAX
205 SCNuPTR
207 SCNx8
208 SCNx16
209 SCNx32
210 SCNx64
212 SCNxLEAST8
213 SCNxLEAST16
214 SCNxLEAST32
215 SCNxLEAST64
217 SCNxFAST8
218 SCNxFAST16
219 SCNxFAST32
220 SCNxFAST64
222 SCNxMAX
223 SCNxPTR
225 Types:
227 imaxdiv_t
229 intmax_t imaxabs(intmax_t j);
230 imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
231 intmax_t strtoimax(const char* restrict nptr, char** restrict endptr, int base);
232 uintmax_t strtoumax(const char* restrict nptr, char** restrict endptr, int base);
233 intmax_t wcstoimax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
234 uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
238 #include <__config>
240 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
241 # pragma GCC system_header
242 #endif
244 /* C99 stdlib (e.g. glibc < 2.18) does not provide format macros needed
245 for C++11 unless __STDC_FORMAT_MACROS is defined
247 #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
248 # define __STDC_FORMAT_MACROS
249 #endif
251 #if __has_include_next(<inttypes.h>)
252 # include_next <inttypes.h>
253 #endif
255 #ifdef __cplusplus
257 # include <stdint.h>
259 # undef imaxabs
260 # undef imaxdiv
262 #endif // __cplusplus
264 #endif // _LIBCPP_INTTYPES_H