llvm-mos-sdk
inttypes.h
Go to the documentation of this file.
1 #ifndef _INTTYPES_H_
2 #define _INTTYPES_H_
3 
4 #include <stddef.h>
5 #include <stdint.h>
6 
7 #define PRId8 __INT8_FMTd__
8 #define PRIdLEAST8 __INT_LEAST8_FMTd__
9 #define PRIdFAST8 __INT_FAST8_FMTd__
10 #define PRId16 __INT16_FMTd__
11 #define PRIdLEAST16 __INT_LEAST16_FMTd__
12 #define PRIdFAST16 __INT_FAST16_FMTd__
13 #define PRId32 __INT32_FMTd__
14 #define PRIdLEAST32 __INT_LEAST32_FMTd__
15 #define PRIdFAST32 __INT_FAST32_FMTd__
16 #define PRId64 __INT64_FMTd__
17 #define PRIdLEAST64 __INT_LEAST64_FMTd__
18 #define PRIdFAST64 __INT_FAST64_FMTd__
19 #define PRIdMAX __INTMAX_FMTd__
20 #define PRIdPTR __INTPTR_FMTd__
21 
22 #define PRIi8 __INT8_FMTi__
23 #define PRIiLEAST8 __INT_LEAST8_FMTi__
24 #define PRIiFAST8 __INT_FAST8_FMTi__
25 #define PRIi16 __INT16_FMTi__
26 #define PRIiLEAST16 __INT_LEAST16_FMTi__
27 #define PRIiFAST16 __INT_FAST16_FMTi__
28 #define PRIi32 __INT32_FMTi__
29 #define PRIiLEAST32 __INT_LEAST32_FMTi__
30 #define PRIiFAST32 __INT_FAST32_FMTi__
31 #define PRIi64 __INT64_FMTi__
32 #define PRIiLEAST64 __INT_LEAST64_FMTi__
33 #define PRIiFAST64 __INT_FAST64_FMTi__
34 #define PRIiMAX __INTMAX_FMTi__
35 #define PRIiPTR __INTPTR_FMTi__
36 
37 #define PRIo8 __UINT8_FMTo__
38 #define PRIoLEAST8 __UINT_LEAST8_FMTo__
39 #define PRIoFAST8 __UINT_FAST8_FMTo__
40 #define PRIo16 __UINT16_FMTo__
41 #define PRIoLEAST16 __UINT_LEAST16_FMTo__
42 #define PRIoFAST16 __UINT_FAST16_FMTo__
43 #define PRIo32 __UINT32_FMTo__
44 #define PRIoLEAST32 __UINT_LEAST32_FMTo__
45 #define PRIoFAST32 __UINT_FAST32_FMTo__
46 #define PRIo64 __UINT64_FMTo__
47 #define PRIoLEAST64 __UINT_LEAST64_FMTo__
48 #define PRIoFAST64 __UINT_FAST64_FMTo__
49 #define PRIoMAX __UINTMAX_FMTo__
50 #define PRIoPTR __UINTPTR_FMTo__
51 
52 #define PRIu8 __UINT8_FMTu__
53 #define PRIuLEAST8 __UINT_LEAST8_FMTu__
54 #define PRIuFAST8 __UINT_FAST8_FMTu__
55 #define PRIu16 __UINT16_FMTu__
56 #define PRIuLEAST16 __UINT_LEAST16_FMTu__
57 #define PRIuFAST16 __UINT_FAST16_FMTu__
58 #define PRIu32 __UINT32_FMTu__
59 #define PRIuLEAST32 __UINT_LEAST32_FMTu__
60 #define PRIuFAST32 __UINT_FAST32_FMTu__
61 #define PRIu64 __UINT64_FMTu__
62 #define PRIuLEAST64 __UINT_LEAST64_FMTu__
63 #define PRIuFAST64 __UINT_FAST64_FMTu__
64 #define PRIuMAX __UINTMAX_FMTu__
65 #define PRIuPTR __UINTPTR_FMTu__
66 
67 #define PRIx8 __UINT8_FMTx__
68 #define PRIxLEAST8 __UINT_LEAST8_FMTx__
69 #define PRIxFAST8 __UINT_FAST8_FMTx__
70 #define PRIx16 __UINT16_FMTx__
71 #define PRIxLEAST16 __UINT_LEAST16_FMTx__
72 #define PRIxFAST16 __UINT_FAST16_FMTx__
73 #define PRIx32 __UINT32_FMTx__
74 #define PRIxLEAST32 __UINT_LEAST32_FMTx__
75 #define PRIxFAST32 __UINT_FAST32_FMTx__
76 #define PRIx64 __UINT64_FMTx__
77 #define PRIxLEAST64 __UINT_LEAST64_FMTx__
78 #define PRIxFAST64 __UINT_FAST64_FMTx__
79 #define PRIxMAX __UINTMAX_FMTx__
80 #define PRIxPTR __UINTPTR_FMTx__
81 
82 #define PRIX8 __UINT8_FMTX__
83 #define PRIXLEAST8 __UINT_LEAST8_FMTX__
84 #define PRIXFAST8 __UINT_FAST8_FMTX__
85 #define PRIX16 __UINT16_FMTX__
86 #define PRIXLEAST16 __UINT_LEAST16_FMTX__
87 #define PRIXFAST16 __UINT_FAST16_FMTX__
88 #define PRIX32 __UINT32_FMTX__
89 #define PRIXLEAST32 __UINT_LEAST32_FMTX__
90 #define PRIXFAST32 __UINT_FAST32_FMTX__
91 #define PRIX64 __UINT64_FMTX__
92 #define PRIXLEAST64 __UINT_LEAST64_FMTX__
93 #define PRIXFAST64 __UINT_FAST64_FMTX__
94 #define PRIXMAX __UINTMAX_FMTX__
95 #define PRIXPTR __UINTPTR_FMTX__
96 
97 #define SCNd8 __INT8_FMTd__
98 #define SCNdLEAST8 __INT_LEAST8_FMTd__
99 #define SCNdFAST8 __INT_FAST8_FMTd__
100 #define SCNd16 __INT16_FMTd__
101 #define SCNdLEAST16 __INT_LEAST16_FMTd__
102 #define SCNdFAST16 __INT_FAST16_FMTd__
103 #define SCNd32 __INT32_FMTd__
104 #define SCNdLEAST32 __INT_LEAST32_FMTd__
105 #define SCNdFAST32 __INT_FAST32_FMTd__
106 #define SCNd64 __INT64_FMTd__
107 #define SCNdLEAST64 __INT_LEAST64_FMTd__
108 #define SCNdFAST64 __INT_FAST64_FMTd__
109 #define SCNdMAX __INTMAX_FMTd__
110 #define SCNdPTR __INTPTR_FMTd__
111 
112 #define SCNi8 __INT8_FMTi__
113 #define SCNiLEAST8 __INT_LEAST8_FMTi__
114 #define SCNiFAST8 __INT_FAST8_FMTi__
115 #define SCNi16 __INT16_FMTi__
116 #define SCNiLEAST16 __INT_LEAST16_FMTi__
117 #define SCNiFAST16 __INT_FAST16_FMTi__
118 #define SCNi32 __INT32_FMTi__
119 #define SCNiLEAST32 __INT_LEAST32_FMTi__
120 #define SCNiFAST32 __INT_FAST32_FMTi__
121 #define SCNi64 __INT64_FMTi__
122 #define SCNiLEAST64 __INT_LEAST64_FMTi__
123 #define SCNiFAST64 __INT_FAST64_FMTi__
124 #define SCNiMAX __INTMAX_FMTi__
125 #define SCNiPTR __INTPTR_FMTi__
126 
127 #define SCNo8 __UINT8_FMTo__
128 #define SCNoLEAST8 __UINT_LEAST8_FMTo__
129 #define SCNoFAST8 __UINT_FAST8_FMTo__
130 #define SCNo16 __UINT16_FMTo__
131 #define SCNoLEAST16 __UINT_LEAST16_FMTo__
132 #define SCNoFAST16 __UINT_FAST16_FMTo__
133 #define SCNo32 __UINT32_FMTo__
134 #define SCNoLEAST32 __UINT_LEAST32_FMTo__
135 #define SCNoFAST32 __UINT_FAST32_FMTo__
136 #define SCNo64 __UINT64_FMTo__
137 #define SCNoLEAST64 __UINT_LEAST64_FMTo__
138 #define SCNoFAST64 __UINT_FAST64_FMTo__
139 #define SCNoMAX __UINTMAX_FMTo__
140 #define SCNoPTR __UINTPTR_FMTo__
141 
142 #define SCNu8 __UINT8_FMTu__
143 #define SCNuLEAST8 __UINT_LEAST8_FMTu__
144 #define SCNuFAST8 __UINT_FAST8_FMTu__
145 #define SCNu16 __UINT16_FMTu__
146 #define SCNuLEAST16 __UINT_LEAST16_FMTu__
147 #define SCNuFAST16 __UINT_FAST16_FMTu__
148 #define SCNu32 __UINT32_FMTu__
149 #define SCNuLEAST32 __UINT_LEAST32_FMTu__
150 #define SCNuFAST32 __UINT_FAST32_FMTu__
151 #define SCNu64 __UINT64_FMTu__
152 #define SCNuLEAST64 __UINT_LEAST64_FMTu__
153 #define SCNuFAST64 __UINT_FAST64_FMTu__
154 #define SCNuMAX __UINTMAX_FMTu__
155 #define SCNuPTR __UINTPTR_FMTu__
156 
157 #define SCNx8 __UINT8_FMTx__
158 #define SCNxLEAST8 __UINT_LEAST8_FMTx__
159 #define SCNxFAST8 __UINT_FAST8_FMTx__
160 #define SCNx16 __UINT16_FMTx__
161 #define SCNxLEAST16 __UINT_LEAST16_FMTx__
162 #define SCNxFAST16 __UINT_FAST16_FMTx__
163 #define SCNx32 __UINT32_FMTx__
164 #define SCNxLEAST32 __UINT_LEAST32_FMTx__
165 #define SCNxFAST32 __UINT_FAST32_FMTx__
166 #define SCNx64 __UINT64_FMTx__
167 #define SCNxLEAST64 __UINT_LEAST64_FMTx__
168 #define SCNxFAST64 __UINT_FAST64_FMTx__
169 #define SCNxMAX __UINTMAX_FMTx__
170 #define SCNxPTR __UINTPTR_FMTx__
171 
172 #ifdef __cplusplus
173 extern "C" {
174 #endif
175 
177 
178 typedef struct {
179  intmax_t quot, rem;
180 } imaxdiv_t;
181 
182 imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
183 
184 intmax_t strtoimax(const char *__restrict__ nptr, char **__restrict__ endptr,
185  int base);
186 uintmax_t strtoumax(const char *__restrict__ nptr, char **__restrict__ endptr,
187  int base);
188 
189 #ifdef __cplusplus
190 } /* extern "C" */
191 #endif
192 
193 #endif // not _INTTYPES_H_
std::intmax_t
::intmax_t intmax_t
Definition: cstdint:19
imaxdiv_t::rem
intmax_t rem
Definition: inttypes.h:179
imaxdiv_t
Definition: inttypes.h:178
strtoumax
uintmax_t strtoumax(const char *__restrict__ nptr, char **__restrict__ endptr, int base)
std::uintmax_t
::uintmax_t uintmax_t
Definition: cstdint:33
strtoimax
intmax_t strtoimax(const char *__restrict__ nptr, char **__restrict__ endptr, int base)
imaxdiv
imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom)
imaxabs
intmax_t imaxabs(intmax_t j)