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