Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
stdint.h
Go to the documentation of this file.
1 /* stdint.h standard header */
2 #pragma once
3 
4 #ifndef _MSC_STDINT_H_
5 #define _MSC_STDINT_H_
6 #ifndef _STDINT
7 #define _STDINT
8 #ifndef RC_INVOKED
9 #include <crtdefs.h>
10 
11 typedef signed char int8_t;
12 typedef short int16_t;
13 typedef int int32_t;
14 typedef long long int64_t;
15 typedef unsigned char uint8_t;
16 typedef unsigned short uint16_t;
17 typedef unsigned int uint32_t;
18 typedef unsigned long long uint64_t;
19 
20 typedef signed char int_least8_t;
21 typedef short int_least16_t;
22 typedef int int_least32_t;
23 typedef long long int_least64_t;
24 typedef unsigned char uint_least8_t;
25 typedef unsigned short uint_least16_t;
26 typedef unsigned int uint_least32_t;
27 typedef unsigned long long uint_least64_t;
28 
29 typedef signed char int_fast8_t;
30 typedef int int_fast16_t;
31 typedef int int_fast32_t;
32 typedef long long int_fast64_t;
33 typedef unsigned char uint_fast8_t;
34 typedef unsigned int uint_fast16_t;
35 typedef unsigned int uint_fast32_t;
36 typedef unsigned long long uint_fast64_t;
37 
38 #ifndef _INTPTR_T_DEFINED
39  #define _INTPTR_T_DEFINED
40  #ifdef _WIN64
41 typedef long long intptr_t;
42  #else /* _WIN64 */
43 typedef _W64 int intptr_t;
44  #endif /* _WIN64 */
45 #endif /* _INTPTR_T_DEFINED */
46 
47 #ifndef _UINTPTR_T_DEFINED
48  #define _UINTPTR_T_DEFINED
49  #ifdef _WIN64
50 typedef unsigned long long uintptr_t;
51  #else /* _WIN64 */
52 typedef _W64 unsigned int uintptr_t;
53  #endif /* _WIN64 */
54 #endif /* _UINTPTR_T_DEFINED */
55 
56 typedef long long intmax_t;
57 typedef unsigned long long uintmax_t;
58 
59 /* These macros must exactly match those in the Windows SDK's intsafe.h */
60 #define INT8_MIN (-127i8 - 1)
61 #define INT16_MIN (-32767i16 - 1)
62 #define INT32_MIN (-2147483647i32 - 1)
63 #define INT64_MIN (-9223372036854775807i64 - 1)
64 #define INT8_MAX 127i8
65 #define INT16_MAX 32767i16
66 #define INT32_MAX 2147483647i32
67 #define INT64_MAX 9223372036854775807i64
68 #define UINT8_MAX 0xffui8
69 #define UINT16_MAX 0xffffui16
70 #define UINT32_MAX 0xffffffffui32
71 #define UINT64_MAX 0xffffffffffffffffui64
72 
73 #define INT_LEAST8_MIN INT8_MIN
74 #define INT_LEAST16_MIN INT16_MIN
75 #define INT_LEAST32_MIN INT32_MIN
76 #define INT_LEAST64_MIN INT64_MIN
77 #define INT_LEAST8_MAX INT8_MAX
78 #define INT_LEAST16_MAX INT16_MAX
79 #define INT_LEAST32_MAX INT32_MAX
80 #define INT_LEAST64_MAX INT64_MAX
81 #define UINT_LEAST8_MAX UINT8_MAX
82 #define UINT_LEAST16_MAX UINT16_MAX
83 #define UINT_LEAST32_MAX UINT32_MAX
84 #define UINT_LEAST64_MAX UINT64_MAX
85 
86 #define INT_FAST8_MIN INT8_MIN
87 #define INT_FAST16_MIN INT32_MIN
88 #define INT_FAST32_MIN INT32_MIN
89 #define INT_FAST64_MIN INT64_MIN
90 #define INT_FAST8_MAX INT8_MAX
91 #define INT_FAST16_MAX INT32_MAX
92 #define INT_FAST32_MAX INT32_MAX
93 #define INT_FAST64_MAX INT64_MAX
94 #define UINT_FAST8_MAX UINT8_MAX
95 #define UINT_FAST16_MAX UINT32_MAX
96 #define UINT_FAST32_MAX UINT32_MAX
97 #define UINT_FAST64_MAX UINT64_MAX
98 
99 #ifdef _WIN64
100  #define INTPTR_MIN INT64_MIN
101  #define INTPTR_MAX INT64_MAX
102  #define UINTPTR_MAX UINT64_MAX
103 #else /* _WIN64 */
104  #define INTPTR_MIN INT32_MIN
105  #define INTPTR_MAX INT32_MAX
106  #define UINTPTR_MAX UINT32_MAX
107 #endif /* _WIN64 */
108 
109 #define INTMAX_MIN INT64_MIN
110 #define INTMAX_MAX INT64_MAX
111 #define UINTMAX_MAX UINT64_MAX
112 
113 #define PTRDIFF_MIN INTPTR_MIN
114 #define PTRDIFF_MAX INTPTR_MAX
115 
116 #ifndef SIZE_MAX
117  #define SIZE_MAX UINTPTR_MAX
118 #endif /* SIZE_MAX */
119 
120 #define SIG_ATOMIC_MIN INT32_MIN
121 #define SIG_ATOMIC_MAX INT32_MAX
122 
123 //#define WCHAR_MIN 0x0000
124 //#define WCHAR_MAX 0xffff
125 
126 #define WINT_MIN 0x0000
127 #define WINT_MAX 0xffff
128 
129 #define INT8_C(x) (x)
130 #define INT16_C(x) (x)
131 #define INT32_C(x) (x)
132 #define INT64_C(x) (x ## LL)
133 
134 #define UINT8_C(x) (x)
135 #define UINT16_C(x) (x)
136 #define UINT32_C(x) (x ## U)
137 #define UINT64_C(x) (x ## ULL)
138 
139 #define INTMAX_C(x) INT64_C(x)
140 #define UINTMAX_C(x) UINT64_C(x)
141 #endif /* RC_INVOKED */
142 #endif /* _STDINT */
143 #endif /* _MSC_STDINT_H_ */
144 
145 /*
146  * Copyright (c) 1992-2012 by P.J. Plauger. ALL RIGHTS RESERVED.
147  * Consult your license regarding permissions and restrictions.
148 V6.00:0009 */
int_fast8_t
signed char int_fast8_t
Definition: stdint.h:29
uint_fast16_t
unsigned int uint_fast16_t
Definition: stdint.h:34
uint_least64_t
unsigned long long uint_least64_t
Definition: stdint.h:27
uint_fast8_t
unsigned char uint_fast8_t
Definition: stdint.h:33
uint8_t
unsigned char uint8_t
Definition: stdint.h:15
int_least8_t
signed char int_least8_t
Definition: stdint.h:20
uint_least32_t
unsigned int uint_least32_t
Definition: stdint.h:26
uint_least8_t
unsigned char uint_least8_t
Definition: stdint.h:24
int8_t
signed char int8_t
Definition: stdint.h:11
uint64_t
unsigned long long uint64_t
Definition: stdint.h:18
int_least16_t
short int_least16_t
Definition: stdint.h:21
int32_t
int int32_t
Definition: stdint.h:13
uint_fast64_t
unsigned long long uint_fast64_t
Definition: stdint.h:36
int64_t
long long int64_t
Definition: stdint.h:14
uintmax_t
unsigned long long uintmax_t
Definition: stdint.h:57
uint32_t
unsigned int uint32_t
Definition: stdint.h:17
int_fast64_t
long long int_fast64_t
Definition: stdint.h:32
_W64
#define _W64
Definition: stdint.h:108
intptr_t
_W64 int intptr_t
Definition: stdint.h:43
uintptr_t
_W64 unsigned int uintptr_t
Definition: stdint.h:52
uint_least16_t
unsigned short uint_least16_t
Definition: stdint.h:25
int_fast16_t
int int_fast16_t
Definition: stdint.h:30
int_fast32_t
int int_fast32_t
Definition: stdint.h:31
intmax_t
long long intmax_t
Definition: stdint.h:56
int16_t
short int16_t
Definition: stdint.h:12
int_least64_t
long long int_least64_t
Definition: stdint.h:23
uint16_t
unsigned short uint16_t
Definition: stdint.h:16
int_least32_t
int int_least32_t
Definition: stdint.h:22
uint_fast32_t
unsigned int uint_fast32_t
Definition: stdint.h:35