1 # /* **************************************************************************
\r
3 # * (C) Copyright Paul Mensonides 2002.
\r
4 # * Distributed under the Boost Software License, Version 1.0. (See
\r
5 # * accompanying file LICENSE_1_0.txt or copy at
\r
6 # * http://www.boost.org/LICENSE_1_0.txt)
\r
8 # ************************************************************************** */
\r
10 # /* See http://www.boost.org for most recent version. */
\r
12 # ifndef BOOST_PP_VALUE
\r
13 # error BOOST_PP_ERROR: BOOST_PP_VALUE is not defined
\r
16 # undef BOOST_PP_SLOT_TEMP_1
\r
17 # undef BOOST_PP_SLOT_TEMP_2
\r
18 # undef BOOST_PP_SLOT_TEMP_3
\r
19 # undef BOOST_PP_SLOT_TEMP_4
\r
20 # undef BOOST_PP_SLOT_TEMP_5
\r
21 # undef BOOST_PP_SLOT_TEMP_6
\r
22 # undef BOOST_PP_SLOT_TEMP_7
\r
23 # undef BOOST_PP_SLOT_TEMP_8
\r
24 # undef BOOST_PP_SLOT_TEMP_9
\r
25 # undef BOOST_PP_SLOT_TEMP_10
\r
27 # if (BOOST_PP_VALUE) / 1000000000UL == 0
\r
28 # define BOOST_PP_SLOT_TEMP_10 0
\r
29 # elif (BOOST_PP_VALUE) / 1000000000UL == 1
\r
30 # define BOOST_PP_SLOT_TEMP_10 1
\r
31 # elif (BOOST_PP_VALUE) / 1000000000UL == 2
\r
32 # define BOOST_PP_SLOT_TEMP_10 2
\r
33 # elif (BOOST_PP_VALUE) / 1000000000UL == 3
\r
34 # define BOOST_PP_SLOT_TEMP_10 3
\r
35 # elif (BOOST_PP_VALUE) / 1000000000UL == 4
\r
36 # define BOOST_PP_SLOT_TEMP_10 4
\r
37 # elif (BOOST_PP_VALUE) / 1000000000UL == 5
\r
38 # define BOOST_PP_SLOT_TEMP_10 5
\r
39 # elif (BOOST_PP_VALUE) / 1000000000UL == 6
\r
40 # define BOOST_PP_SLOT_TEMP_10 6
\r
41 # elif (BOOST_PP_VALUE) / 1000000000UL == 7
\r
42 # define BOOST_PP_SLOT_TEMP_10 7
\r
43 # elif (BOOST_PP_VALUE) / 1000000000UL == 8
\r
44 # define BOOST_PP_SLOT_TEMP_10 8
\r
45 # elif (BOOST_PP_VALUE) / 1000000000UL == 9
\r
46 # define BOOST_PP_SLOT_TEMP_10 9
\r
49 # if BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 0
\r
50 # define BOOST_PP_SLOT_TEMP_9 0
\r
51 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 1
\r
52 # define BOOST_PP_SLOT_TEMP_9 1
\r
53 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 2
\r
54 # define BOOST_PP_SLOT_TEMP_9 2
\r
55 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 3
\r
56 # define BOOST_PP_SLOT_TEMP_9 3
\r
57 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 4
\r
58 # define BOOST_PP_SLOT_TEMP_9 4
\r
59 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 5
\r
60 # define BOOST_PP_SLOT_TEMP_9 5
\r
61 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 6
\r
62 # define BOOST_PP_SLOT_TEMP_9 6
\r
63 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 7
\r
64 # define BOOST_PP_SLOT_TEMP_9 7
\r
65 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 8
\r
66 # define BOOST_PP_SLOT_TEMP_9 8
\r
67 # elif BOOST_PP_SLOT_OFFSET_10(BOOST_PP_VALUE) / 100000000UL == 9
\r
68 # define BOOST_PP_SLOT_TEMP_9 9
\r
71 # if BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 0
\r
72 # define BOOST_PP_SLOT_TEMP_8 0
\r
73 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 1
\r
74 # define BOOST_PP_SLOT_TEMP_8 1
\r
75 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 2
\r
76 # define BOOST_PP_SLOT_TEMP_8 2
\r
77 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 3
\r
78 # define BOOST_PP_SLOT_TEMP_8 3
\r
79 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 4
\r
80 # define BOOST_PP_SLOT_TEMP_8 4
\r
81 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 5
\r
82 # define BOOST_PP_SLOT_TEMP_8 5
\r
83 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 6
\r
84 # define BOOST_PP_SLOT_TEMP_8 6
\r
85 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 7
\r
86 # define BOOST_PP_SLOT_TEMP_8 7
\r
87 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 8
\r
88 # define BOOST_PP_SLOT_TEMP_8 8
\r
89 # elif BOOST_PP_SLOT_OFFSET_9(BOOST_PP_VALUE) / 10000000UL == 9
\r
90 # define BOOST_PP_SLOT_TEMP_8 9
\r
93 # if BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 0
\r
94 # define BOOST_PP_SLOT_TEMP_7 0
\r
95 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 1
\r
96 # define BOOST_PP_SLOT_TEMP_7 1
\r
97 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 2
\r
98 # define BOOST_PP_SLOT_TEMP_7 2
\r
99 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 3
\r
100 # define BOOST_PP_SLOT_TEMP_7 3
\r
101 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 4
\r
102 # define BOOST_PP_SLOT_TEMP_7 4
\r
103 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 5
\r
104 # define BOOST_PP_SLOT_TEMP_7 5
\r
105 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 6
\r
106 # define BOOST_PP_SLOT_TEMP_7 6
\r
107 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 7
\r
108 # define BOOST_PP_SLOT_TEMP_7 7
\r
109 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 8
\r
110 # define BOOST_PP_SLOT_TEMP_7 8
\r
111 # elif BOOST_PP_SLOT_OFFSET_8(BOOST_PP_VALUE) / 1000000UL == 9
\r
112 # define BOOST_PP_SLOT_TEMP_7 9
\r
115 # if BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 0
\r
116 # define BOOST_PP_SLOT_TEMP_6 0
\r
117 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 1
\r
118 # define BOOST_PP_SLOT_TEMP_6 1
\r
119 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 2
\r
120 # define BOOST_PP_SLOT_TEMP_6 2
\r
121 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 3
\r
122 # define BOOST_PP_SLOT_TEMP_6 3
\r
123 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 4
\r
124 # define BOOST_PP_SLOT_TEMP_6 4
\r
125 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 5
\r
126 # define BOOST_PP_SLOT_TEMP_6 5
\r
127 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 6
\r
128 # define BOOST_PP_SLOT_TEMP_6 6
\r
129 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 7
\r
130 # define BOOST_PP_SLOT_TEMP_6 7
\r
131 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 8
\r
132 # define BOOST_PP_SLOT_TEMP_6 8
\r
133 # elif BOOST_PP_SLOT_OFFSET_7(BOOST_PP_VALUE) / 100000UL == 9
\r
134 # define BOOST_PP_SLOT_TEMP_6 9
\r
137 # if BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 0
\r
138 # define BOOST_PP_SLOT_TEMP_5 0
\r
139 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 1
\r
140 # define BOOST_PP_SLOT_TEMP_5 1
\r
141 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 2
\r
142 # define BOOST_PP_SLOT_TEMP_5 2
\r
143 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 3
\r
144 # define BOOST_PP_SLOT_TEMP_5 3
\r
145 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 4
\r
146 # define BOOST_PP_SLOT_TEMP_5 4
\r
147 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 5
\r
148 # define BOOST_PP_SLOT_TEMP_5 5
\r
149 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 6
\r
150 # define BOOST_PP_SLOT_TEMP_5 6
\r
151 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 7
\r
152 # define BOOST_PP_SLOT_TEMP_5 7
\r
153 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 8
\r
154 # define BOOST_PP_SLOT_TEMP_5 8
\r
155 # elif BOOST_PP_SLOT_OFFSET_6(BOOST_PP_VALUE) / 10000UL == 9
\r
156 # define BOOST_PP_SLOT_TEMP_5 9
\r
159 # if BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 0
\r
160 # define BOOST_PP_SLOT_TEMP_4 0
\r
161 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 1
\r
162 # define BOOST_PP_SLOT_TEMP_4 1
\r
163 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 2
\r
164 # define BOOST_PP_SLOT_TEMP_4 2
\r
165 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 3
\r
166 # define BOOST_PP_SLOT_TEMP_4 3
\r
167 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 4
\r
168 # define BOOST_PP_SLOT_TEMP_4 4
\r
169 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 5
\r
170 # define BOOST_PP_SLOT_TEMP_4 5
\r
171 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 6
\r
172 # define BOOST_PP_SLOT_TEMP_4 6
\r
173 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 7
\r
174 # define BOOST_PP_SLOT_TEMP_4 7
\r
175 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 8
\r
176 # define BOOST_PP_SLOT_TEMP_4 8
\r
177 # elif BOOST_PP_SLOT_OFFSET_5(BOOST_PP_VALUE) / 1000UL == 9
\r
178 # define BOOST_PP_SLOT_TEMP_4 9
\r
181 # if BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 0
\r
182 # define BOOST_PP_SLOT_TEMP_3 0
\r
183 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 1
\r
184 # define BOOST_PP_SLOT_TEMP_3 1
\r
185 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 2
\r
186 # define BOOST_PP_SLOT_TEMP_3 2
\r
187 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 3
\r
188 # define BOOST_PP_SLOT_TEMP_3 3
\r
189 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 4
\r
190 # define BOOST_PP_SLOT_TEMP_3 4
\r
191 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 5
\r
192 # define BOOST_PP_SLOT_TEMP_3 5
\r
193 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 6
\r
194 # define BOOST_PP_SLOT_TEMP_3 6
\r
195 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 7
\r
196 # define BOOST_PP_SLOT_TEMP_3 7
\r
197 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 8
\r
198 # define BOOST_PP_SLOT_TEMP_3 8
\r
199 # elif BOOST_PP_SLOT_OFFSET_4(BOOST_PP_VALUE) / 100UL == 9
\r
200 # define BOOST_PP_SLOT_TEMP_3 9
\r
203 # if BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 0
\r
204 # define BOOST_PP_SLOT_TEMP_2 0
\r
205 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 1
\r
206 # define BOOST_PP_SLOT_TEMP_2 1
\r
207 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 2
\r
208 # define BOOST_PP_SLOT_TEMP_2 2
\r
209 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 3
\r
210 # define BOOST_PP_SLOT_TEMP_2 3
\r
211 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 4
\r
212 # define BOOST_PP_SLOT_TEMP_2 4
\r
213 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 5
\r
214 # define BOOST_PP_SLOT_TEMP_2 5
\r
215 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 6
\r
216 # define BOOST_PP_SLOT_TEMP_2 6
\r
217 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 7
\r
218 # define BOOST_PP_SLOT_TEMP_2 7
\r
219 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 8
\r
220 # define BOOST_PP_SLOT_TEMP_2 8
\r
221 # elif BOOST_PP_SLOT_OFFSET_3(BOOST_PP_VALUE) / 10UL == 9
\r
222 # define BOOST_PP_SLOT_TEMP_2 9
\r
225 # if BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 0
\r
226 # define BOOST_PP_SLOT_TEMP_1 0
\r
227 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 1
\r
228 # define BOOST_PP_SLOT_TEMP_1 1
\r
229 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 2
\r
230 # define BOOST_PP_SLOT_TEMP_1 2
\r
231 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 3
\r
232 # define BOOST_PP_SLOT_TEMP_1 3
\r
233 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 4
\r
234 # define BOOST_PP_SLOT_TEMP_1 4
\r
235 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 5
\r
236 # define BOOST_PP_SLOT_TEMP_1 5
\r
237 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 6
\r
238 # define BOOST_PP_SLOT_TEMP_1 6
\r
239 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 7
\r
240 # define BOOST_PP_SLOT_TEMP_1 7
\r
241 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 8
\r
242 # define BOOST_PP_SLOT_TEMP_1 8
\r
243 # elif BOOST_PP_SLOT_OFFSET_2(BOOST_PP_VALUE) == 9
\r
244 # define BOOST_PP_SLOT_TEMP_1 9
\r
247 # undef BOOST_PP_VALUE
\r