STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
inttypes.h
Go to the documentation of this file.
1 /***
2 *complex.h - definitions and declarations for complex math library
3 *
4 * Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 * This file contains constant definitions and external subroutine
8 * declarations for the complex math subroutine library.
9 *
10 * [Public]
11 *
12 ****/
13 
14 #pragma once
15 
16 #ifndef _INTTYPES
17 #define _INTTYPES
18 #include <stdint.h>
19 
20 #pragma pack(push,_CRT_PACKING)
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* __cplusplus */
25 
26 typedef struct
27 { /* result of long long divide */
30 } _Lldiv_t;
31 
32 #pragma pack(pop)
33 
35 
37 imaxdiv_t _CRTIMP __cdecl imaxdiv(_In_ intmax_t, _In_ intmax_t);
38 
39 intmax_t _CRTIMP __cdecl strtoimax(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int);
40 intmax_t _CRTIMP __cdecl _strtoimax_l(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int, _In_opt_ _locale_t);
41 uintmax_t _CRTIMP __cdecl strtoumax(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int);
42 uintmax_t _CRTIMP __cdecl _strtoumax_l(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int, _In_opt_ _locale_t);
43 intmax_t _CRTIMP __cdecl wcstoimax(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int);
44 intmax_t _CRTIMP __cdecl _wcstoimax_l(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int, _In_opt_ _locale_t);
45 uintmax_t _CRTIMP __cdecl wcstoumax(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int);
46 uintmax_t _CRTIMP __cdecl _wcstoumax_l(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int, _In_opt_ _locale_t);
47 
48 #define _PFX_8 "hh"
49 #define _PFX_16 "h"
50 #define _PFX_32 "l"
51 #define _PFX_64 "ll"
52 
53 #ifdef _WIN64
54 #define _PFX_PTR "ll"
55 #else
56 #define _PFX_PTR "l"
57 #endif
58 
59 #ifdef _FAST16_IS_32 /* compiler test */
60 #define _PFX_F16 _PFX_32
61 #else /* _FAST16_IS_32 */
62 #define _PFX_F16 _PFX_16
63 #endif /* _FAST16_IS_32 */
64 
65 /* PRINT FORMAT MACROS */
66 #define PRId8 _PFX_8 "d"
67 #define PRId16 _PFX_16 "d"
68 #define PRId32 _PFX_32 "d"
69 #define PRIdLEAST8 _PFX_8 "d"
70 #define PRIdLEAST16 _PFX_16 "d"
71 #define PRIdLEAST32 _PFX_32 "d"
72 #define PRIdFAST8 _PFX_8 "d"
73 #define PRIdFAST16 _PFX_F16 "d"
74 #define PRIdFAST32 _PFX_32 "d"
75 
76 #define PRIi8 _PFX_8 "i"
77 #define PRIi16 _PFX_16 "i"
78 #define PRIi32 _PFX_32 "i"
79 #define PRIiLEAST8 _PFX_8 "i"
80 #define PRIiLEAST16 _PFX_16 "i"
81 #define PRIiLEAST32 _PFX_32 "i"
82 #define PRIiFAST8 _PFX_8 "i"
83 #define PRIiFAST16 _PFX_F16 "i"
84 #define PRIiFAST32 _PFX_32 "i"
85 
86 #define PRIo8 _PFX_8 "o"
87 #define PRIo16 _PFX_16 "o"
88 #define PRIo32 _PFX_32 "o"
89 #define PRIoLEAST8 _PFX_8 "o"
90 #define PRIoLEAST16 _PFX_16 "o"
91 #define PRIoLEAST32 _PFX_32 "o"
92 #define PRIoFAST8 _PFX_8 "o"
93 #define PRIoFAST16 _PFX_F16 "o"
94 #define PRIoFAST32 _PFX_32 "o"
95 
96 #define PRIu8 _PFX_8 "u"
97 #define PRIu16 _PFX_16 "u"
98 #define PRIu32 _PFX_32 "u"
99 #define PRIuLEAST8 _PFX_8 "u"
100 #define PRIuLEAST16 _PFX_16 "u"
101 #define PRIuLEAST32 _PFX_32 "u"
102 #define PRIuFAST8 _PFX_8 "u"
103 #define PRIuFAST16 _PFX_F16 "u"
104 #define PRIuFAST32 _PFX_32 "u"
105 
106 #define PRIx8 _PFX_8 "x"
107 #define PRIx16 _PFX_16 "x"
108 #define PRIx32 _PFX_32 "x"
109 #define PRIxLEAST8 _PFX_8 "x"
110 #define PRIxLEAST16 _PFX_16 "x"
111 #define PRIxLEAST32 _PFX_32 "x"
112 #define PRIxFAST8 _PFX_8 "x"
113 #define PRIxFAST16 _PFX_F16 "x"
114 #define PRIxFAST32 _PFX_32 "x"
115 
116 #define PRIX8 _PFX_8 "X"
117 #define PRIX16 _PFX_16 "X"
118 #define PRIX32 _PFX_32 "X"
119 #define PRIXLEAST8 _PFX_8 "X"
120 #define PRIXLEAST16 _PFX_16 "X"
121 #define PRIXLEAST32 _PFX_32 "X"
122 #define PRIXFAST8 _PFX_8 "X"
123 #define PRIXFAST16 _PFX_F16 "X"
124 #define PRIXFAST32 _PFX_32 "X"
125 
126 #define PRId64 _PFX_64 "d"
127 #define PRIdLEAST64 _PFX_64 "d"
128 #define PRIdFAST64 _PFX_64 "d"
129 #define PRIdMAX _PFX_64 "d"
130 #define PRIdPTR _PFX_PTR "d"
131 
132 #define PRIi64 _PFX_64 "i"
133 #define PRIiLEAST64 _PFX_64 "i"
134 #define PRIiFAST64 _PFX_64 "i"
135 #define PRIiMAX _PFX_64 "i"
136 #define PRIiPTR _PFX_PTR "i"
137 
138 #define PRIo64 _PFX_64 "o"
139 #define PRIoLEAST64 _PFX_64 "o"
140 #define PRIoFAST64 _PFX_64 "o"
141 #define PRIoMAX _PFX_64 "o"
142 #define PRIoPTR _PFX_PTR "o"
143 
144 #define PRIu64 _PFX_64 "u"
145 #define PRIuLEAST64 _PFX_64 "u"
146 #define PRIuFAST64 _PFX_64 "u"
147 #define PRIuMAX _PFX_64 "u"
148 #define PRIuPTR _PFX_PTR "u"
149 
150 #define PRIx64 _PFX_64 "x"
151 #define PRIxLEAST64 _PFX_64 "x"
152 #define PRIxFAST64 _PFX_64 "x"
153 #define PRIxMAX _PFX_64 "x"
154 #define PRIxPTR _PFX_PTR "x"
155 
156 #define PRIX64 _PFX_64 "X"
157 #define PRIXLEAST64 _PFX_64 "X"
158 #define PRIXFAST64 _PFX_64 "X"
159 #define PRIXMAX _PFX_64 "X"
160 #define PRIXPTR _PFX_PTR "X"
161 
162 /* SCAN FORMAT MACROS */
163 #define SCNd8 _PFX_8 "d"
164 #define SCNd16 _PFX_16 "d"
165 #define SCNd32 _PFX_32 "d"
166 #define SCNdLEAST8 _PFX_8 "d"
167 #define SCNdLEAST16 _PFX_16 "d"
168 #define SCNdLEAST32 _PFX_32 "d"
169 #define SCNdFAST8 _PFX_8 "d"
170 #define SCNdFAST16 _PFX_F16 "d"
171 #define SCNdFAST32 _PFX_32 "d"
172 
173 #define SCNi8 _PFX_8 "i"
174 #define SCNi16 _PFX_16 "i"
175 #define SCNi32 _PFX_32 "i"
176 #define SCNiLEAST8 _PFX_8 "i"
177 #define SCNiLEAST16 _PFX_16 "i"
178 #define SCNiLEAST32 _PFX_32 "i"
179 #define SCNiFAST8 _PFX_8 "i"
180 #define SCNiFAST16 _PFX_F16 "i"
181 #define SCNiFAST32 _PFX_32 "i"
182 
183 #define SCNo8 _PFX_8 "o"
184 #define SCNo16 _PFX_16 "o"
185 #define SCNo32 _PFX_32 "o"
186 #define SCNoLEAST8 _PFX_8 "o"
187 #define SCNoLEAST16 _PFX_16 "o"
188 #define SCNoLEAST32 _PFX_32 "o"
189 #define SCNoFAST8 _PFX_8 "o"
190 #define SCNoFAST16 _PFX_F16 "o"
191 #define SCNoFAST32 _PFX_32 "o"
192 
193 #define SCNu8 _PFX_8 "u"
194 #define SCNu16 _PFX_16 "u"
195 #define SCNu32 _PFX_32 "u"
196 #define SCNuLEAST8 _PFX_8 "u"
197 #define SCNuLEAST16 _PFX_16 "u"
198 #define SCNuLEAST32 _PFX_32 "u"
199 #define SCNuFAST8 _PFX_8 "u"
200 #define SCNuFAST16 _PFX_F16 "u"
201 #define SCNuFAST32 _PFX_32 "u"
202 
203 #define SCNx8 _PFX_8 "x"
204 #define SCNx16 _PFX_16 "x"
205 #define SCNx32 _PFX_32 "x"
206 #define SCNxLEAST8 _PFX_8 "x"
207 #define SCNxLEAST16 _PFX_16 "x"
208 #define SCNxLEAST32 _PFX_32 "x"
209 #define SCNxFAST8 _PFX_8 "x"
210 #define SCNxFAST16 _PFX_F16 "x"
211 #define SCNxFAST32 _PFX_32 "x"
212 
213 #define SCNd64 _PFX_64 "d"
214 #define SCNdLEAST64 _PFX_64 "d"
215 #define SCNdFAST64 _PFX_64 "d"
216 #define SCNdMAX _PFX_64 "d"
217 #define SCNdPTR _PFX_PTR "d"
218 
219 #define SCNi64 _PFX_64 "i"
220 #define SCNiLEAST64 _PFX_64 "i"
221 #define SCNiFAST64 _PFX_64 "i"
222 #define SCNiMAX _PFX_64 "i"
223 #define SCNiPTR _PFX_PTR "i"
224 
225 #define SCNo64 _PFX_64 "o"
226 #define SCNoLEAST64 _PFX_64 "o"
227 #define SCNoFAST64 _PFX_64 "o"
228 #define SCNoMAX _PFX_64 "o"
229 #define SCNoPTR _PFX_PTR "o"
230 
231 #define SCNu64 _PFX_64 "u"
232 #define SCNuLEAST64 _PFX_64 "u"
233 #define SCNuFAST64 _PFX_64 "u"
234 #define SCNuMAX _PFX_64 "u"
235 #define SCNuPTR _PFX_PTR "u"
236 
237 #define SCNx64 _PFX_64 "x"
238 #define SCNxLEAST64 _PFX_64 "x"
239 #define SCNxFAST64 _PFX_64 "x"
240 #define SCNxMAX _PFX_64 "x"
241 #define SCNxPTR _PFX_PTR "x"
242 
243 #ifdef __cplusplus
244 }
245 #endif /* __cplusplus */
246 
247 #endif /* _INTTYPES */
_Lldiv_t imaxdiv_t
Definition: inttypes.h:34
long long intmax_t
Definition: stdint.h:53
uintmax_t _CRTIMP __cdecl _wcstoumax_l(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int, _In_opt_ _locale_t)
#define _Out_opt_
Definition: sal.h:352
#define _CRTIMP
Definition: crtdefs.h:23
uintmax_t _CRTIMP __cdecl _strtoumax_l(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int, _In_opt_ _locale_t)
intmax_t _CRTIMP __cdecl strtoimax(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int)
uintmax_t _CRTIMP __cdecl strtoumax(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int)
#define _In_z_
Definition: sal.h:319
#define _In_
Definition: sal.h:314
#define _In_opt_
Definition: sal.h:315
intmax_t rem
Definition: inttypes.h:29
uintmax_t _CRTIMP __cdecl wcstoumax(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int)
imaxdiv_t _CRTIMP __cdecl imaxdiv(_In_ intmax_t, _In_ intmax_t)
intmax_t quot
Definition: inttypes.h:28
intmax_t _CRTIMP __cdecl _strtoimax_l(_In_z_ const char *, _Out_opt_ _Deref_post_z_ char **, int, _In_opt_ _locale_t)
intmax_t _CRTIMP __cdecl _wcstoimax_l(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int, _In_opt_ _locale_t)
intmax_t _CRTIMP __cdecl imaxabs(_In_ intmax_t)
#define _Deref_post_z_
Definition: sal.h:1127
unsigned long long uintmax_t
Definition: stdint.h:54
intmax_t _CRTIMP __cdecl wcstoimax(_In_z_ const wchar_t *, _Out_opt_ _Deref_post_z_ wchar_t **, int)
Definition: inttypes.h:26
Definition: crtdefs.h:2078