blob: e78d3b0d6e4d315c4319d841f1afa0b2c989eacc [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001# /* **************************************************************************
2# * *
3# * (C) Copyright Paul Mensonides 2002.
4# * Distributed under the Boost Software License, Version 1.0. (See
5# * accompanying file LICENSE_1_0.txt or copy at
6# * http://www.boost.org/LICENSE_1_0.txt)
7# * *
8# ************************************************************************** */
9#
10# /* See http://www.boost.org for most recent version. */
11#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070012# ifndef NDNBOOST_PP_VALUE
13# error NDNBOOST_PP_ERROR: NDNBOOST_PP_VALUE is not defined
Jeff Thompsonf7d49942013-08-01 16:47:40 -070014# endif
15#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070016# undef NDNBOOST_PP_SLOT_TEMP_1
17# undef NDNBOOST_PP_SLOT_TEMP_2
18# undef NDNBOOST_PP_SLOT_TEMP_3
19# undef NDNBOOST_PP_SLOT_TEMP_4
20# undef NDNBOOST_PP_SLOT_TEMP_5
21# undef NDNBOOST_PP_SLOT_TEMP_6
22# undef NDNBOOST_PP_SLOT_TEMP_7
23# undef NDNBOOST_PP_SLOT_TEMP_8
24# undef NDNBOOST_PP_SLOT_TEMP_9
25# undef NDNBOOST_PP_SLOT_TEMP_10
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070027# if (NDNBOOST_PP_VALUE) / 1000000000UL == 0
28# define NDNBOOST_PP_SLOT_TEMP_10 0
29# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 1
30# define NDNBOOST_PP_SLOT_TEMP_10 1
31# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 2
32# define NDNBOOST_PP_SLOT_TEMP_10 2
33# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 3
34# define NDNBOOST_PP_SLOT_TEMP_10 3
35# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 4
36# define NDNBOOST_PP_SLOT_TEMP_10 4
37# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 5
38# define NDNBOOST_PP_SLOT_TEMP_10 5
39# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 6
40# define NDNBOOST_PP_SLOT_TEMP_10 6
41# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 7
42# define NDNBOOST_PP_SLOT_TEMP_10 7
43# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 8
44# define NDNBOOST_PP_SLOT_TEMP_10 8
45# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 9
46# define NDNBOOST_PP_SLOT_TEMP_10 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -070047# endif
48#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070049# if NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 0
50# define NDNBOOST_PP_SLOT_TEMP_9 0
51# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 1
52# define NDNBOOST_PP_SLOT_TEMP_9 1
53# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 2
54# define NDNBOOST_PP_SLOT_TEMP_9 2
55# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 3
56# define NDNBOOST_PP_SLOT_TEMP_9 3
57# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 4
58# define NDNBOOST_PP_SLOT_TEMP_9 4
59# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 5
60# define NDNBOOST_PP_SLOT_TEMP_9 5
61# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 6
62# define NDNBOOST_PP_SLOT_TEMP_9 6
63# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 7
64# define NDNBOOST_PP_SLOT_TEMP_9 7
65# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 8
66# define NDNBOOST_PP_SLOT_TEMP_9 8
67# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 9
68# define NDNBOOST_PP_SLOT_TEMP_9 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -070069# endif
70#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070071# if NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 0
72# define NDNBOOST_PP_SLOT_TEMP_8 0
73# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 1
74# define NDNBOOST_PP_SLOT_TEMP_8 1
75# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 2
76# define NDNBOOST_PP_SLOT_TEMP_8 2
77# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 3
78# define NDNBOOST_PP_SLOT_TEMP_8 3
79# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 4
80# define NDNBOOST_PP_SLOT_TEMP_8 4
81# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 5
82# define NDNBOOST_PP_SLOT_TEMP_8 5
83# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 6
84# define NDNBOOST_PP_SLOT_TEMP_8 6
85# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 7
86# define NDNBOOST_PP_SLOT_TEMP_8 7
87# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 8
88# define NDNBOOST_PP_SLOT_TEMP_8 8
89# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 9
90# define NDNBOOST_PP_SLOT_TEMP_8 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -070091# endif
92#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070093# if NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 0
94# define NDNBOOST_PP_SLOT_TEMP_7 0
95# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 1
96# define NDNBOOST_PP_SLOT_TEMP_7 1
97# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 2
98# define NDNBOOST_PP_SLOT_TEMP_7 2
99# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 3
100# define NDNBOOST_PP_SLOT_TEMP_7 3
101# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 4
102# define NDNBOOST_PP_SLOT_TEMP_7 4
103# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 5
104# define NDNBOOST_PP_SLOT_TEMP_7 5
105# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 6
106# define NDNBOOST_PP_SLOT_TEMP_7 6
107# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 7
108# define NDNBOOST_PP_SLOT_TEMP_7 7
109# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 8
110# define NDNBOOST_PP_SLOT_TEMP_7 8
111# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 9
112# define NDNBOOST_PP_SLOT_TEMP_7 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700113# endif
114#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700115# if NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 0
116# define NDNBOOST_PP_SLOT_TEMP_6 0
117# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 1
118# define NDNBOOST_PP_SLOT_TEMP_6 1
119# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 2
120# define NDNBOOST_PP_SLOT_TEMP_6 2
121# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 3
122# define NDNBOOST_PP_SLOT_TEMP_6 3
123# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 4
124# define NDNBOOST_PP_SLOT_TEMP_6 4
125# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 5
126# define NDNBOOST_PP_SLOT_TEMP_6 5
127# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 6
128# define NDNBOOST_PP_SLOT_TEMP_6 6
129# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 7
130# define NDNBOOST_PP_SLOT_TEMP_6 7
131# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 8
132# define NDNBOOST_PP_SLOT_TEMP_6 8
133# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 9
134# define NDNBOOST_PP_SLOT_TEMP_6 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700135# endif
136#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700137# if NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 0
138# define NDNBOOST_PP_SLOT_TEMP_5 0
139# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 1
140# define NDNBOOST_PP_SLOT_TEMP_5 1
141# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 2
142# define NDNBOOST_PP_SLOT_TEMP_5 2
143# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 3
144# define NDNBOOST_PP_SLOT_TEMP_5 3
145# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 4
146# define NDNBOOST_PP_SLOT_TEMP_5 4
147# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 5
148# define NDNBOOST_PP_SLOT_TEMP_5 5
149# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 6
150# define NDNBOOST_PP_SLOT_TEMP_5 6
151# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 7
152# define NDNBOOST_PP_SLOT_TEMP_5 7
153# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 8
154# define NDNBOOST_PP_SLOT_TEMP_5 8
155# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 9
156# define NDNBOOST_PP_SLOT_TEMP_5 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700157# endif
158#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700159# if NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 0
160# define NDNBOOST_PP_SLOT_TEMP_4 0
161# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 1
162# define NDNBOOST_PP_SLOT_TEMP_4 1
163# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 2
164# define NDNBOOST_PP_SLOT_TEMP_4 2
165# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 3
166# define NDNBOOST_PP_SLOT_TEMP_4 3
167# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 4
168# define NDNBOOST_PP_SLOT_TEMP_4 4
169# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 5
170# define NDNBOOST_PP_SLOT_TEMP_4 5
171# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 6
172# define NDNBOOST_PP_SLOT_TEMP_4 6
173# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 7
174# define NDNBOOST_PP_SLOT_TEMP_4 7
175# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 8
176# define NDNBOOST_PP_SLOT_TEMP_4 8
177# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 9
178# define NDNBOOST_PP_SLOT_TEMP_4 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700179# endif
180#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700181# if NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 0
182# define NDNBOOST_PP_SLOT_TEMP_3 0
183# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 1
184# define NDNBOOST_PP_SLOT_TEMP_3 1
185# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 2
186# define NDNBOOST_PP_SLOT_TEMP_3 2
187# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 3
188# define NDNBOOST_PP_SLOT_TEMP_3 3
189# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 4
190# define NDNBOOST_PP_SLOT_TEMP_3 4
191# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 5
192# define NDNBOOST_PP_SLOT_TEMP_3 5
193# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 6
194# define NDNBOOST_PP_SLOT_TEMP_3 6
195# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 7
196# define NDNBOOST_PP_SLOT_TEMP_3 7
197# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 8
198# define NDNBOOST_PP_SLOT_TEMP_3 8
199# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 9
200# define NDNBOOST_PP_SLOT_TEMP_3 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700201# endif
202#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700203# if NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 0
204# define NDNBOOST_PP_SLOT_TEMP_2 0
205# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 1
206# define NDNBOOST_PP_SLOT_TEMP_2 1
207# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 2
208# define NDNBOOST_PP_SLOT_TEMP_2 2
209# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 3
210# define NDNBOOST_PP_SLOT_TEMP_2 3
211# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 4
212# define NDNBOOST_PP_SLOT_TEMP_2 4
213# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 5
214# define NDNBOOST_PP_SLOT_TEMP_2 5
215# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 6
216# define NDNBOOST_PP_SLOT_TEMP_2 6
217# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 7
218# define NDNBOOST_PP_SLOT_TEMP_2 7
219# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 8
220# define NDNBOOST_PP_SLOT_TEMP_2 8
221# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 9
222# define NDNBOOST_PP_SLOT_TEMP_2 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700223# endif
224#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700225# if NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 0
226# define NDNBOOST_PP_SLOT_TEMP_1 0
227# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 1
228# define NDNBOOST_PP_SLOT_TEMP_1 1
229# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 2
230# define NDNBOOST_PP_SLOT_TEMP_1 2
231# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 3
232# define NDNBOOST_PP_SLOT_TEMP_1 3
233# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 4
234# define NDNBOOST_PP_SLOT_TEMP_1 4
235# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 5
236# define NDNBOOST_PP_SLOT_TEMP_1 5
237# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 6
238# define NDNBOOST_PP_SLOT_TEMP_1 6
239# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 7
240# define NDNBOOST_PP_SLOT_TEMP_1 7
241# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 8
242# define NDNBOOST_PP_SLOT_TEMP_1 8
243# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 9
244# define NDNBOOST_PP_SLOT_TEMP_1 9
Jeff Thompsonf7d49942013-08-01 16:47:40 -0700245# endif
246#
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700247# undef NDNBOOST_PP_VALUE