]> pd.if.org Git - pdclib/blob - includes/stdint.h
Some cleanup.
[pdclib] / includes / stdint.h
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7 // Integer types
8 // ----------------------------------------------------------------------------
9
10 #ifndef __STDINT_H
11 #define __STDINT_H __STDINT_H
12
13 // ----------------------------------------------------------------------------
14 // TYPEDEFS
15
16 typedef int8_t;  // TODO
17 typedef int16_t; // TODO
18 typedef int32_t; // TODO
19 typedef int64_t; // TODO
20
21 typedef uint8_t;  // TODO
22 typedef uint16_t; // TODO
23 typedef uint32_t; // TODO
24 typedef uint64_t; // TODO
25
26 typedef int_least8_t;  // TODO
27 typedef int_least16_t; // TODO
28 typedef int_least32_t; // TODO
29 typedef int_least64_t; // TODO
30
31 typedef uint_least8_t;  // TODO
32 typedef uint_least16_t; // TODO
33 typedef uint_least32_t; // TODO
34 typedef uint_least64_t; // TODO
35
36 typedef int_fast8_t;  // TODO
37 typedef int_fast16_t; // TODO
38 typedef int_fast32_t; // TODO
39 typedef int_fast64_t; // TODO
40
41 typedef uint_fast8_t;  // TODO
42 typedef uint_fast16_t; // TODO
43 typedef uint_fast32_t; // TODO
44 typedef uint_fast64_t; // TODO
45
46 typedef intptr_t;  // TODO
47 typedef uintptr_t; // TODO
48
49 typedef intmax_t;  // TODO
50 typedef uintmax_t; // TODO
51
52 // ----------------------------------------------------------------------------
53 // MACROS
54
55 #define INT8_MIN  // TODO
56 #define INT16_MIN // TODO
57 #define INT32_MIN // TODO
58 #define INT64_MIN // TODO
59
60 #define INT8_MAX  0x7f
61 #define INT16_MAX 0x7fff
62 #define INT32_MAX 0x7fffffff
63 #define INT64_MAX 0x7fffffffffffffff
64
65 #define UINT8_MAX  0xff
66 #define UINT16_MAX 0xffff
67 #define UINT32_MAX 0xffffffff
68 #define UINT64_MAX 0xffffffffffffffff
69
70 #define INT_LEAST8_MIN  // TODO
71 #define INT_LEAST16_MIN // TODO
72 #define INT_LEAST32_MIN // TODO
73 #define INT_LEAST64_MIN // TODO
74
75 #define INT_LEAST8_MAX  // TODO
76 #define INT_LEAST16_MAX // TODO
77 #define INT_LEAST32_MAX // TODO
78 #define INT_LEAST64_MAX // TODO
79
80 #define UINT_LEAST8_MAX  // TODO
81 #define UINT_LEAST16_MAX // TODO
82 #define UINT_LEAST32_MAX // TODO
83 #define UINT_LEAST64_MAX // TODO
84
85 #define INT_FAST8_MIN  // TODO
86 #define INT_FAST16_MIN // TODO
87 #define INT_FAST32_MIN // TODO
88 #define INT_FAST64_MIN // TODO
89
90 #define INT_FAST8_MAX  // TODO
91 #define INT_FAST16_MAX // TODO
92 #define INT_FAST32_MAX // TODO
93 #define INT_FAST64_MAX // TODO
94
95 #define UINT_FAST8_MAX  // TODO
96 #define UINT_FAST16_MAX // TODO
97 #define UINT_FAST32_MAX // TODO
98 #define UINT_FAST64_MAX // TODO
99
100 #define INTPTR_MIN  // TODO
101 #define INTPTR_MAX  // TODO
102 #define UINTPTR_MAX // TODO
103
104 #define INT8_C(x)  // TODO
105 #define INT16_C(x) // TODO
106 #define INT32_C(x) // TODO
107 #define INT64_C(x) // TODO
108
109 #define UINT8_C(x)  // TODO
110 #define UINT16_C(x) // TODO
111 #define UINT32_C(x) // TODO
112 #define UINT64_C(x) // TODO
113
114 #define INTMAX_C(x)  // TODO
115 #define UINTMAX_C(x) // TODO
116
117 #define PTRDIFF_MIN // TODO
118 #define PTRDIFF_MAX // TODO
119
120 #define SIG_ATOMIC_MIN // TODO
121 #define SIG_ATOMIC_MAX // TODO
122
123 #define SIZE_MAX  // TODO
124
125 #define WCHAR_MIN // TODO
126 #define WCHAR_MAX // TODO
127
128 #define WINT_MIN // TODO
129 #define WINT_MAX // TODO
130
131 #define INTMAX_MIN  // TODO
132 #define INTMAX_MAX  // TODO
133 #define UINTMAX_MAX // TODO
134
135 #endif // __STDINT_H