1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
11 #define __STDINT_H __STDINT_H
13 // This file is part of the platform personality (see personality.txt).
15 // TODO: Documentation
17 // ----------------------------------------------------------------------------
20 typedef int8_t; // TODO
21 typedef int16_t; // TODO
22 typedef int32_t; // TODO
23 typedef int64_t; // TODO
25 typedef uint8_t; // TODO
26 typedef uint16_t; // TODO
27 typedef uint32_t; // TODO
28 typedef uint64_t; // TODO
30 typedef int_least8_t; // TODO
31 typedef int_least16_t; // TODO
32 typedef int_least32_t; // TODO
33 typedef int_least64_t; // TODO
35 typedef uint_least8_t; // TODO
36 typedef uint_least16_t; // TODO
37 typedef uint_least32_t; // TODO
38 typedef uint_least64_t; // TODO
40 typedef int_fast8_t; // TODO
41 typedef int_fast16_t; // TODO
42 typedef int_fast32_t; // TODO
43 typedef int_fast64_t; // TODO
45 typedef uint_fast8_t; // TODO
46 typedef uint_fast16_t; // TODO
47 typedef uint_fast32_t; // TODO
48 typedef uint_fast64_t; // TODO
50 typedef intptr_t; // TODO
51 typedef uintptr_t; // TODO
53 typedef intmax_t; // TODO
54 typedef uintmax_t; // TODO
56 // ----------------------------------------------------------------------------
59 #define INT8_MIN // TODO
60 #define INT16_MIN // TODO
61 #define INT32_MIN // TODO
62 #define INT64_MIN // TODO
65 #define INT16_MAX 0x7fff
66 #define INT32_MAX 0x7fffffff
67 #define INT64_MAX 0x7fffffffffffffff
69 #define UINT8_MAX 0xff
70 #define UINT16_MAX 0xffff
71 #define UINT32_MAX 0xffffffff
72 #define UINT64_MAX 0xffffffffffffffff
74 #define INT_LEAST8_MIN // TODO
75 #define INT_LEAST16_MIN // TODO
76 #define INT_LEAST32_MIN // TODO
77 #define INT_LEAST64_MIN // TODO
79 #define INT_LEAST8_MAX // TODO
80 #define INT_LEAST16_MAX // TODO
81 #define INT_LEAST32_MAX // TODO
82 #define INT_LEAST64_MAX // TODO
84 #define UINT_LEAST8_MAX // TODO
85 #define UINT_LEAST16_MAX // TODO
86 #define UINT_LEAST32_MAX // TODO
87 #define UINT_LEAST64_MAX // TODO
89 #define INT_FAST8_MIN // TODO
90 #define INT_FAST16_MIN // TODO
91 #define INT_FAST32_MIN // TODO
92 #define INT_FAST64_MIN // TODO
94 #define INT_FAST8_MAX // TODO
95 #define INT_FAST16_MAX // TODO
96 #define INT_FAST32_MAX // TODO
97 #define INT_FAST64_MAX // TODO
99 #define UINT_FAST8_MAX // TODO
100 #define UINT_FAST16_MAX // TODO
101 #define UINT_FAST32_MAX // TODO
102 #define UINT_FAST64_MAX // TODO
104 #define INTPTR_MIN // TODO
105 #define INTPTR_MAX // TODO
106 #define UINTPTR_MAX // TODO
108 #define INT8_C(x) // TODO
109 #define INT16_C(x) // TODO
110 #define INT32_C(x) // TODO
111 #define INT64_C(x) // TODO
113 #define UINT8_C(x) // TODO
114 #define UINT16_C(x) // TODO
115 #define UINT32_C(x) // TODO
116 #define UINT64_C(x) // TODO
118 #define INTMAX_C(x) // TODO
119 #define UINTMAX_C(x) // TODO
121 #define PTRDIFF_MIN // TODO
122 #define PTRDIFF_MAX // TODO
124 #define SIG_ATOMIC_MIN // TODO
125 #define SIG_ATOMIC_MAX // TODO
127 #define SIZE_MAX // TODO
129 #define WCHAR_MIN // TODO
130 #define WCHAR_MAX // TODO
132 #define WINT_MIN // TODO
133 #define WINT_MAX // TODO
135 #define INTMAX_MIN // TODO
136 #define INTMAX_MAX // TODO
137 #define UINTMAX_MAX // TODO