33 #error "Use this header only with Microsoft Visual C++ compilers!"
36 #ifndef _MSC_INTTYPES_H_ // [
37 #define _MSC_INTTYPES_H_
57 #define PRIdLEAST8 "d"
58 #define PRIiLEAST8 "i"
64 #define PRIdLEAST16 "hd"
65 #define PRIiLEAST16 "hi"
66 #define PRIdFAST16 "hd"
67 #define PRIiFAST16 "hi"
71 #define PRIdLEAST32 "I32d"
72 #define PRIiLEAST32 "I32i"
73 #define PRIdFAST32 "I32d"
74 #define PRIiFAST32 "I32i"
78 #define PRIdLEAST64 "I64d"
79 #define PRIiLEAST64 "I64i"
80 #define PRIdFAST64 "I64d"
81 #define PRIiFAST64 "I64i"
83 #define PRIdMAX "I64d"
84 #define PRIiMAX "I64i"
94 #define PRIoLEAST8 "o"
95 #define PRIuLEAST8 "u"
96 #define PRIxLEAST8 "x"
97 #define PRIXLEAST8 "X"
100 #define PRIxFAST8 "x"
101 #define PRIXFAST8 "X"
107 #define PRIoLEAST16 "ho"
108 #define PRIuLEAST16 "hu"
109 #define PRIxLEAST16 "hx"
110 #define PRIXLEAST16 "hX"
111 #define PRIoFAST16 "ho"
112 #define PRIuFAST16 "hu"
113 #define PRIxFAST16 "hx"
114 #define PRIXFAST16 "hX"
116 #define PRIo32 "I32o"
117 #define PRIu32 "I32u"
118 #define PRIx32 "I32x"
119 #define PRIX32 "I32X"
120 #define PRIoLEAST32 "I32o"
121 #define PRIuLEAST32 "I32u"
122 #define PRIxLEAST32 "I32x"
123 #define PRIXLEAST32 "I32X"
124 #define PRIoFAST32 "I32o"
125 #define PRIuFAST32 "I32u"
126 #define PRIxFAST32 "I32x"
127 #define PRIXFAST32 "I32X"
129 #define PRIo64 "I64o"
130 #define PRIu64 "I64u"
131 #define PRIx64 "I64x"
132 #define PRIX64 "I64X"
133 #define PRIoLEAST64 "I64o"
134 #define PRIuLEAST64 "I64u"
135 #define PRIxLEAST64 "I64x"
136 #define PRIXLEAST64 "I64X"
137 #define PRIoFAST64 "I64o"
138 #define PRIuFAST64 "I64u"
139 #define PRIxFAST64 "I64x"
140 #define PRIXFAST64 "I64X"
142 #define PRIoMAX "I64o"
143 #define PRIuMAX "I64u"
144 #define PRIxMAX "I64x"
145 #define PRIXMAX "I64X"
155 #define SCNdLEAST8 "d"
156 #define SCNiLEAST8 "i"
157 #define SCNdFAST8 "d"
158 #define SCNiFAST8 "i"
162 #define SCNdLEAST16 "hd"
163 #define SCNiLEAST16 "hi"
164 #define SCNdFAST16 "hd"
165 #define SCNiFAST16 "hi"
169 #define SCNdLEAST32 "ld"
170 #define SCNiLEAST32 "li"
171 #define SCNdFAST32 "ld"
172 #define SCNiFAST32 "li"
174 #define SCNd64 "I64d"
175 #define SCNi64 "I64i"
176 #define SCNdLEAST64 "I64d"
177 #define SCNiLEAST64 "I64i"
178 #define SCNdFAST64 "I64d"
179 #define SCNiFAST64 "I64i"
181 #define SCNdMAX "I64d"
182 #define SCNiMAX "I64i"
185 # define SCNdPTR "I64d"
186 # define SCNiPTR "I64i"
188 # define SCNdPTR "ld"
189 # define SCNiPTR "li"
197 #define SCNoLEAST8 "o"
198 #define SCNuLEAST8 "u"
199 #define SCNxLEAST8 "x"
200 #define SCNXLEAST8 "X"
201 #define SCNoFAST8 "o"
202 #define SCNuFAST8 "u"
203 #define SCNxFAST8 "x"
204 #define SCNXFAST8 "X"
210 #define SCNoLEAST16 "ho"
211 #define SCNuLEAST16 "hu"
212 #define SCNxLEAST16 "hx"
213 #define SCNXLEAST16 "hX"
214 #define SCNoFAST16 "ho"
215 #define SCNuFAST16 "hu"
216 #define SCNxFAST16 "hx"
217 #define SCNXFAST16 "hX"
223 #define SCNoLEAST32 "lo"
224 #define SCNuLEAST32 "lu"
225 #define SCNxLEAST32 "lx"
226 #define SCNXLEAST32 "lX"
227 #define SCNoFAST32 "lo"
228 #define SCNuFAST32 "lu"
229 #define SCNxFAST32 "lx"
230 #define SCNXFAST32 "lX"
232 #define SCNo64 "I64o"
233 #define SCNu64 "I64u"
234 #define SCNx64 "I64x"
235 #define SCNX64 "I64X"
236 #define SCNoLEAST64 "I64o"
237 #define SCNuLEAST64 "I64u"
238 #define SCNxLEAST64 "I64x"
239 #define SCNXLEAST64 "I64X"
240 #define SCNoFAST64 "I64o"
241 #define SCNuFAST64 "I64u"
242 #define SCNxFAST64 "I64x"
243 #define SCNXFAST64 "I64X"
245 #define SCNoMAX "I64o"
246 #define SCNuMAX "I64u"
247 #define SCNxMAX "I64x"
248 #define SCNXMAX "I64X"
251 # define SCNoPTR "I64o"
252 # define SCNuPTR "I64u"
253 # define SCNxPTR "I64x"
254 # define SCNXPTR "I64X"
256 # define SCNoPTR "lo"
257 # define SCNuPTR "lu"
258 # define SCNxPTR "lx"
259 # define SCNXPTR "lX"
265 #define imaxabs _abs64
271 #ifdef STATIC_IMAXDIV // [
273 #else // STATIC_IMAXDIV ][
275 #endif // STATIC_IMAXDIV ]
280 result.
quot = numer / denom;
281 result.
rem = numer % denom;
283 if (numer < 0 && result.rem > 0) {
293 #define strtoimax _strtoi64
294 #define strtoumax _strtoui64
297 #define wcstoimax _wcstoi64
298 #define wcstoumax _wcstoui64
301 #endif // _MSC_INTTYPES_H_ ]
int64_t intmax_t
Definition: stdint.h:123
Definition: inttypes.h:47
_inline imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
Definition: inttypes.h:276
intmax_t rem
Definition: inttypes.h:49
intmax_t quot
Definition: inttypes.h:48