image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
EVE_IntTypes_MSVC12.h
Go to the documentation of this file.
1
32#ifndef _STDINT
33
34#define _STDINT
35/* 7.18.1.1 Exact-width integer types */
36typedef signed char int8_t;
37typedef short int16_t;
38typedef int int32_t;
39typedef long long int64_t;
40typedef unsigned char uint8_t;
41typedef unsigned short uint16_t;
42typedef unsigned int uint32_t;
43typedef unsigned long long uint64_t;
44
45/* 7.18.1.2 Minimum-width integer types */
46typedef signed char int_least8_t;
47typedef short int_least16_t;
48typedef int int_least32_t;
49typedef long long int_least64_t;
50typedef unsigned char uint_least8_t;
51typedef unsigned short uint_least16_t;
52typedef unsigned int uint_least32_t;
53typedef unsigned long long uint_least64_t;
54
55/* 7.18.1.3 Fastest minimum-width integer types
56* Not actually guaranteed to be fastest for all purposes
57* Here we use the exact-width types for 8 and 16-bit ints.
58*/
59typedef signed char int_fast8_t;
60typedef int int_fast16_t;
61typedef int int_fast32_t;
62typedef long long int_fast64_t;
63typedef unsigned char uint_fast8_t;
64typedef unsigned int uint_fast16_t;
65typedef unsigned int uint_fast32_t;
66typedef unsigned long long uint_fast64_t;
67
68/* 7.18.1.5 Greatest-width integer types */
69typedef long long intmax_t;
70typedef unsigned long long uintmax_t;
71
72/* 7.18.2.1 Limits of exact-width integer types */
73#define INT8_MIN (-127i8 - 1)
74#define INT16_MIN (-32767i16 - 1)
75#define INT32_MIN (-2147483647i32 - 1)
76#define INT64_MIN (-9223372036854775807i64 - 1)
77
78#define INT8_MAX 127i8
79#define INT16_MAX 32767i16
80#define INT32_MAX 2147483647i32
81#define INT64_MAX 9223372036854775807i64
82
83#define UINT8_MAX 0xffui8
84#define UINT16_MAX 0xffffui16
85#define UINT32_MAX 0xffffffffui32
86#define UINT64_MAX 0xffffffffffffffffui64
87
88/* 7.18.2.2 Limits of minimum-width integer types */
89#define INT_LEAST8_MIN INT8_MIN
90#define INT_LEAST16_MIN INT16_MIN
91#define INT_LEAST32_MIN INT32_MIN
92#define INT_LEAST64_MIN INT64_MIN
93
94#define INT_LEAST8_MAX INT8_MAX
95#define INT_LEAST16_MAX INT16_MAX
96#define INT_LEAST32_MAX INT32_MAX
97#define INT_LEAST64_MAX INT64_MAX
98
99#define UINT_LEAST8_MAX UINT8_MAX
100#define UINT_LEAST16_MAX UINT16_MAX
101#define UINT_LEAST32_MAX UINT32_MAX
102#define UINT_LEAST64_MAX UINT64_MAX
103
104/* 7.18.2.3 Limits of fastest minimum-width integer types */
105#define INT_FAST8_MIN INT8_MIN
106#define INT_FAST16_MIN INT16_MIN
107#define INT_FAST32_MIN INT32_MIN
108#define INT_FAST64_MIN INT64_MIN
109
110#define INT_FAST8_MAX INT8_MAX
111#define INT_FAST16_MAX INT16_MAX
112#define INT_FAST32_MAX INT32_MAX
113#define INT_FAST64_MAX INT64_MAX
114
115#define UINT_FAST8_MAX UINT8_MAX
116#define UINT_FAST16_MAX UINT16_MAX
117#define UINT_FAST32_MAX UINT32_MAX
118#define UINT_FAST64_MAX UINT64_MAX
119
120/* 7.18.2.4 Limits of integer types capable of holding object pointers */
121#ifdef _WIN64
122#define INTPTR_MIN INT64_MIN
123#define INTPTR_MAX INT64_MAX
124#define UINTPTR_MAX UINT64_MAX
125#else
126#define INTPTR_MIN INT32_MIN
127#define INTPTR_MAX INT32_MAX
128#define UINTPTR_MAX UINT32_MAX
129#endif
130
131/* 7.18.2.5 Limits of greatest-width integer types */
132#define INTMAX_MIN INT64_MIN
133#define INTMAX_MAX INT64_MAX
134#define UINTMAX_MAX UINT64_MAX
135
136/* 7.18.3 Limits of other integer types */
137#define PTRDIFF_MIN INTPTR_MIN
138#define PTRDIFF_MAX INTPTR_MAX
139
140#define SIG_ATOMIC_MIN INT32_MIN
141#define SIG_ATOMIC_MAX INT32_MAX
142
143#ifndef SIZE_MAX
144#define SIZE_MAX UINTPTR_MAX
145#endif
146
147#ifndef WCHAR_MIN /* also in wchar.h */
148#define WCHAR_MIN 0x0000
149#define WCHAR_MAX 0xffff
150#endif
151
152#define WINT_MIN 0x0000
153#define WINT_MAX 0xffff
154
155/* 7.18.4.1 Macros for minimum-width integer constants */
156#define INT8_C(x) (x)
157#define INT16_C(x) (x)
158#define INT32_C(x) (x)
159#define INT64_C(x) (x##LL)
160
161#define UINT8_C(x) (x)
162#define UINT16_C(x) (x)
163#define UINT32_C(x) (x##U)
164#define UINT64_C(x) (x##ULL)
165
166#define INTMAX_C(x) INT64_C(x)
167#define UINTMAX_C(x) UINT64_C(x)
168
169#endif /* #ifndef _STDINT */
170
171#ifndef _STDBOOL
172#define _STDBOOL
173#ifndef __cplusplus
174
175/* ISOC99 boolean */
176#define bool int
177#define false 0
178#define true 1
179#define __bool_true_false_are_defined 1
180
181#endif /* __cplusplus */
182#endif /* #ifndef _STDBOOL */
183
184/* end of file */
long long int_least64_t
unsigned int uint_fast16_t
unsigned short uint16_t
unsigned char uint_fast8_t
int int32_t
unsigned int uint32_t
unsigned int uint_fast32_t
int int_least32_t
unsigned long long uintmax_t
short int_least16_t
long long int_fast64_t
long long int64_t
unsigned int uint_least32_t
int int_fast32_t
unsigned long long uint_least64_t
short int16_t
unsigned long long uint64_t
unsigned char uint_least8_t
unsigned long long uint_fast64_t
unsigned char uint8_t
long long intmax_t
unsigned short uint_least16_t
signed char int_least8_t
signed char int8_t
signed char int_fast8_t
int int_fast16_t