]> pd.if.org Git - pdclib/blob - includes/stdint.h
Re-import from Subversion.
[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  * This header is part of a freestanding implementation
10  * --------------------------------------------------------------------------*/
11
12 #ifndef _STDINT_H
13 #define _STDINT_H _STDINT_H
14
15 /* This file is part of the platform personality (see personality.txt). */
16 #ifndef _NULL
17 #include "__intern.h"
18 #endif
19
20 /* TODO: Documentation */
21
22 /* ----------------------------------------------------------------------------
23  * TYPEDEFS
24  * --------------------------------------------------------------------------*/
25
26 typedef int8_t;  /* TODO */
27 typedef int16_t; /* TODO */
28 typedef int32_t; /* TODO */
29 typedef int64_t; /* TODO */
30
31 typedef uint8_t;  /* TODO */
32 typedef uint16_t; /* TODO */
33 typedef uint32_t; /* TODO */
34 typedef uint64_t; /* TODO */
35
36 typedef int_least8_t;  /* TODO */
37 typedef int_least16_t; /* TODO */
38 typedef int_least32_t; /* TODO */
39 typedef int_least64_t; /* TODO */
40
41 typedef uint_least8_t;  /* TODO */
42 typedef uint_least16_t; /* TODO */
43 typedef uint_least32_t; /* TODO */
44 typedef uint_least64_t; /* TODO */
45
46 typedef int_fast8_t;  /* TODO */
47 typedef int_fast16_t; /* TODO */
48 typedef int_fast32_t; /* TODO */
49 typedef int_fast64_t; /* TODO */
50
51 typedef uint_fast8_t;  /* TODO */
52 typedef uint_fast16_t; /* TODO */
53 typedef uint_fast32_t; /* TODO */
54 typedef uint_fast64_t; /* TODO */
55
56 typedef intptr_t;  /* TODO */
57 typedef uintptr_t; /* TODO */
58
59 typedef intmax_t;  /* TODO */
60 typedef uintmax_t; /* TODO */
61
62 /* ----------------------------------------------------------------------------
63  * MACROS
64  * --------------------------------------------------------------------------*/
65
66 #define INT8_MIN  /* TODO */
67 #define INT16_MIN /* TODO */
68 #define INT32_MIN /* TODO */
69 #define INT64_MIN /* TODO */
70
71 #define INT8_MAX  0x7f
72 #define INT16_MAX 0x7fff
73 #define INT32_MAX 0x7fffffff
74 #define INT64_MAX 0x7fffffffffffffff
75
76 #define UINT8_MAX  0xff
77 #define UINT16_MAX 0xffff
78 #define UINT32_MAX 0xffffffff
79 #define UINT64_MAX 0xffffffffffffffff
80
81 #define INT_LEAST8_MIN  /* TODO */
82 #define INT_LEAST16_MIN /* TODO */
83 #define INT_LEAST32_MIN /* TODO */
84 #define INT_LEAST64_MIN /* TODO */
85
86 #define INT_LEAST8_MAX  /* TODO */
87 #define INT_LEAST16_MAX /* TODO */
88 #define INT_LEAST32_MAX /* TODO */
89 #define INT_LEAST64_MAX /* TODO */
90
91 #define UINT_LEAST8_MAX  /* TODO */
92 #define UINT_LEAST16_MAX /* TODO */
93 #define UINT_LEAST32_MAX /* TODO */
94 #define UINT_LEAST64_MAX /* TODO */
95
96 #define INT_FAST8_MIN  /* TODO */
97 #define INT_FAST16_MIN /* TODO */
98 #define INT_FAST32_MIN /* TODO */
99 #define INT_FAST64_MIN /* TODO */
100
101 #define INT_FAST8_MAX  /* TODO */
102 #define INT_FAST16_MAX /* TODO */
103 #define INT_FAST32_MAX /* TODO */
104 #define INT_FAST64_MAX /* TODO */
105
106 #define UINT_FAST8_MAX  /* TODO */
107 #define UINT_FAST16_MAX /* TODO */
108 #define UINT_FAST32_MAX /* TODO */
109 #define UINT_FAST64_MAX /* TODO */
110
111 #define INTPTR_MIN  /* TODO */
112 #define INTPTR_MAX  /* TODO */
113 #define UINTPTR_MAX /* TODO */
114
115 #define INT8_C(x)  /* TODO */
116 #define INT16_C(x) /* TODO */
117 #define INT32_C(x) /* TODO */
118 #define INT64_C(x) /* TODO */
119
120 #define UINT8_C(x)  /* TODO */
121 #define UINT16_C(x) /* TODO */
122 #define UINT32_C(x) /* TODO */
123 #define UINT64_C(x) /* TODO */
124
125 #define INTMAX_C(x)  /* TODO */
126 #define UINTMAX_C(x) /* TODO */
127
128 #define PTRDIFF_MIN /* TODO */
129 #define PTRDIFF_MAX /* TODO */
130
131 #define SIG_ATOMIC_MIN /* TODO */
132 #define SIG_ATOMIC_MAX /* TODO */
133
134 #define SIZE_MAX  /* TODO */
135
136 #define WCHAR_MIN _WCHAR_MIN
137 #define WCHAR_MAX _WCHAR_MAX
138
139 #define INTMAX_MIN  /* TODO */
140 #define INTMAX_MAX  /* TODO */
141 #define UINTMAX_MAX /* TODO */
142
143 #endif // _STDINT_H