blob: e78d3b0d6e4d315c4319d841f1afa0b2c989eacc [file] [log] [blame]
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# * *
# ************************************************************************** */
#
# /* See http://www.boost.org for most recent version. */
#
# ifndef NDNBOOST_PP_VALUE
# error NDNBOOST_PP_ERROR: NDNBOOST_PP_VALUE is not defined
# endif
#
# undef NDNBOOST_PP_SLOT_TEMP_1
# undef NDNBOOST_PP_SLOT_TEMP_2
# undef NDNBOOST_PP_SLOT_TEMP_3
# undef NDNBOOST_PP_SLOT_TEMP_4
# undef NDNBOOST_PP_SLOT_TEMP_5
# undef NDNBOOST_PP_SLOT_TEMP_6
# undef NDNBOOST_PP_SLOT_TEMP_7
# undef NDNBOOST_PP_SLOT_TEMP_8
# undef NDNBOOST_PP_SLOT_TEMP_9
# undef NDNBOOST_PP_SLOT_TEMP_10
#
# if (NDNBOOST_PP_VALUE) / 1000000000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_10 0
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_10 1
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_10 2
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_10 3
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_10 4
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_10 5
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_10 6
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_10 7
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_10 8
# elif (NDNBOOST_PP_VALUE) / 1000000000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_10 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_9 0
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_9 1
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_9 2
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_9 3
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_9 4
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_9 5
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_9 6
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_9 7
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_9 8
# elif NDNBOOST_PP_SLOT_OFFSET_10(NDNBOOST_PP_VALUE) / 100000000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_9 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_8 0
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_8 1
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_8 2
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_8 3
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_8 4
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_8 5
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_8 6
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_8 7
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_8 8
# elif NDNBOOST_PP_SLOT_OFFSET_9(NDNBOOST_PP_VALUE) / 10000000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_8 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_7 0
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_7 1
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_7 2
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_7 3
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_7 4
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_7 5
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_7 6
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_7 7
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_7 8
# elif NDNBOOST_PP_SLOT_OFFSET_8(NDNBOOST_PP_VALUE) / 1000000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_7 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_6 0
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_6 1
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_6 2
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_6 3
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_6 4
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_6 5
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_6 6
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_6 7
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_6 8
# elif NDNBOOST_PP_SLOT_OFFSET_7(NDNBOOST_PP_VALUE) / 100000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_6 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_5 0
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_5 1
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_5 2
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_5 3
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_5 4
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_5 5
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_5 6
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_5 7
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_5 8
# elif NDNBOOST_PP_SLOT_OFFSET_6(NDNBOOST_PP_VALUE) / 10000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_5 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 0
# define NDNBOOST_PP_SLOT_TEMP_4 0
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 1
# define NDNBOOST_PP_SLOT_TEMP_4 1
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 2
# define NDNBOOST_PP_SLOT_TEMP_4 2
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 3
# define NDNBOOST_PP_SLOT_TEMP_4 3
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 4
# define NDNBOOST_PP_SLOT_TEMP_4 4
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 5
# define NDNBOOST_PP_SLOT_TEMP_4 5
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 6
# define NDNBOOST_PP_SLOT_TEMP_4 6
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 7
# define NDNBOOST_PP_SLOT_TEMP_4 7
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 8
# define NDNBOOST_PP_SLOT_TEMP_4 8
# elif NDNBOOST_PP_SLOT_OFFSET_5(NDNBOOST_PP_VALUE) / 1000UL == 9
# define NDNBOOST_PP_SLOT_TEMP_4 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 0
# define NDNBOOST_PP_SLOT_TEMP_3 0
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 1
# define NDNBOOST_PP_SLOT_TEMP_3 1
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 2
# define NDNBOOST_PP_SLOT_TEMP_3 2
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 3
# define NDNBOOST_PP_SLOT_TEMP_3 3
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 4
# define NDNBOOST_PP_SLOT_TEMP_3 4
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 5
# define NDNBOOST_PP_SLOT_TEMP_3 5
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 6
# define NDNBOOST_PP_SLOT_TEMP_3 6
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 7
# define NDNBOOST_PP_SLOT_TEMP_3 7
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 8
# define NDNBOOST_PP_SLOT_TEMP_3 8
# elif NDNBOOST_PP_SLOT_OFFSET_4(NDNBOOST_PP_VALUE) / 100UL == 9
# define NDNBOOST_PP_SLOT_TEMP_3 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 0
# define NDNBOOST_PP_SLOT_TEMP_2 0
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 1
# define NDNBOOST_PP_SLOT_TEMP_2 1
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 2
# define NDNBOOST_PP_SLOT_TEMP_2 2
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 3
# define NDNBOOST_PP_SLOT_TEMP_2 3
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 4
# define NDNBOOST_PP_SLOT_TEMP_2 4
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 5
# define NDNBOOST_PP_SLOT_TEMP_2 5
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 6
# define NDNBOOST_PP_SLOT_TEMP_2 6
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 7
# define NDNBOOST_PP_SLOT_TEMP_2 7
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 8
# define NDNBOOST_PP_SLOT_TEMP_2 8
# elif NDNBOOST_PP_SLOT_OFFSET_3(NDNBOOST_PP_VALUE) / 10UL == 9
# define NDNBOOST_PP_SLOT_TEMP_2 9
# endif
#
# if NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 0
# define NDNBOOST_PP_SLOT_TEMP_1 0
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 1
# define NDNBOOST_PP_SLOT_TEMP_1 1
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 2
# define NDNBOOST_PP_SLOT_TEMP_1 2
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 3
# define NDNBOOST_PP_SLOT_TEMP_1 3
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 4
# define NDNBOOST_PP_SLOT_TEMP_1 4
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 5
# define NDNBOOST_PP_SLOT_TEMP_1 5
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 6
# define NDNBOOST_PP_SLOT_TEMP_1 6
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 7
# define NDNBOOST_PP_SLOT_TEMP_1 7
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 8
# define NDNBOOST_PP_SLOT_TEMP_1 8
# elif NDNBOOST_PP_SLOT_OFFSET_2(NDNBOOST_PP_VALUE) == 9
# define NDNBOOST_PP_SLOT_TEMP_1 9
# endif
#
# undef NDNBOOST_PP_VALUE