File indexing completed on 2025-01-18 09:48:07
0001 #
0002
0003
0004
0005
0006
0007
0008
0009 #
0010 #
0011 #
0012 #
0013 #
0014 #
0015 # ifndef BOOST_PREPROCESSOR_ARITHMETIC_DIV_HPP
0016 # define BOOST_PREPROCESSOR_ARITHMETIC_DIV_HPP
0017 #
0018 # include <boost/preprocessor/config/config.hpp>
0019 #
0020 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
0021 #
0022 # include <boost/preprocessor/arithmetic/detail/div_base.hpp>
0023 # include <boost/preprocessor/tuple/elem.hpp>
0024 #
0025 #
0026 #
0027 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0028 # define BOOST_PP_DIV(x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE(x, y))
0029 # else
0030 # define BOOST_PP_DIV(x, y) BOOST_PP_DIV_I(x, y)
0031 # define BOOST_PP_DIV_I(x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE(x, y))
0032 # endif
0033 #
0034 #
0035 #
0036 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0037 # define BOOST_PP_DIV_D(d, x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE_D(d, x, y))
0038 # else
0039 # define BOOST_PP_DIV_D(d, x, y) BOOST_PP_DIV_D_I(d, x, y)
0040 # define BOOST_PP_DIV_D_I(d, x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE_D(d, x, y))
0041 # endif
0042 #
0043 # else
0044 #
0045 # include <boost/preprocessor/arithmetic/detail/div_base.hpp>
0046 # include <boost/preprocessor/control/iif.hpp>
0047 # include <boost/preprocessor/facilities/identity.hpp>
0048 # include <boost/preprocessor/tuple/elem.hpp>
0049 # include <boost/preprocessor/arithmetic/detail/is_1_number.hpp>
0050 #
0051 #
0052 #
0053 # define BOOST_PP_DIV(x, y) BOOST_PP_IIF(BOOST_PP_DETAIL_IS_1_NUMBER(y),BOOST_PP_IDENTITY_N(x,2),BOOST_PP_DIV_DO)(x,y)
0054 #
0055 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0056 # define BOOST_PP_DIV_DO(x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE(x, y))
0057 # else
0058 # define BOOST_PP_DIV_DO(x, y) BOOST_PP_DIV_I(x, y)
0059 # define BOOST_PP_DIV_I(x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE(x, y))
0060 # endif
0061 #
0062 #
0063 #
0064 # define BOOST_PP_DIV_D(d, x, y) BOOST_PP_IIF(BOOST_PP_DETAIL_IS_1_NUMBER(y),BOOST_PP_IDENTITY_N(x,3),BOOST_PP_DIV_DO_D)(d,x,y)
0065 #
0066 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0067 # define BOOST_PP_DIV_DO_D(d, x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE_D(d, x, y))
0068 # else
0069 # define BOOST_PP_DIV_DO_D(d, x, y) BOOST_PP_DIV_D_I(d, x, y)
0070 # define BOOST_PP_DIV_D_I(d, x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_DIV_BASE_D(d, x, y))
0071 # endif
0072 #
0073 # endif
0074 #
0075 # endif