#include <boost/preprocessor/arithmetic/add.hpp>
#include <boost/preprocessor/arithmetic/dec.hpp>
#include <boost/preprocessor/config/config.hpp>
#include <boost/preprocessor/control/while.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
Macros | |
#define | BOOST_PP_MUL(x, y) BOOST_PP_MUL_I(x, y) |
#define | BOOST_PP_MUL_I(x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_WHILE(BOOST_PP_MUL_P, BOOST_PP_MUL_O, (0, x, y))) |
#define | BOOST_PP_MUL_P(d, rxy) BOOST_PP_TUPLE_ELEM(3, 2, rxy) |
#define | BOOST_PP_MUL_O(d, rxy) BOOST_PP_MUL_O_I(d, BOOST_PP_TUPLE_ELEM(3, 0, rxy), BOOST_PP_TUPLE_ELEM(3, 1, rxy), BOOST_PP_TUPLE_ELEM(3, 2, rxy)) |
#define | BOOST_PP_MUL_O_I(d, r, x, y) (BOOST_PP_ADD_D(d, r, x), x, BOOST_PP_DEC(y)) |
#define | BOOST_PP_MUL_D(d, x, y) BOOST_PP_MUL_D_I(d, x, y) |
#define | BOOST_PP_MUL_D_I(d, x, y) BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_WHILE_ ## d(BOOST_PP_MUL_P, BOOST_PP_MUL_O, (0, x, y))) |
#define BOOST_PP_MUL | ( | x, | |
y | |||
) | BOOST_PP_MUL_I(x, y) |
#define BOOST_PP_MUL_D | ( | d, | |
x, | |||
y | |||
) | BOOST_PP_MUL_D_I(d, x, y) |
#define BOOST_PP_MUL_D_I | ( | d, | |
x, | |||
y | |||
) | BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_WHILE_ ## d(BOOST_PP_MUL_P, BOOST_PP_MUL_O, (0, x, y))) |
#define BOOST_PP_MUL_I | ( | x, | |
y | |||
) | BOOST_PP_TUPLE_ELEM(3, 0, BOOST_PP_WHILE(BOOST_PP_MUL_P, BOOST_PP_MUL_O, (0, x, y))) |
#define BOOST_PP_MUL_O | ( | d, | |
rxy | |||
) | BOOST_PP_MUL_O_I(d, BOOST_PP_TUPLE_ELEM(3, 0, rxy), BOOST_PP_TUPLE_ELEM(3, 1, rxy), BOOST_PP_TUPLE_ELEM(3, 2, rxy)) |
#define BOOST_PP_MUL_O_I | ( | d, | |
r, | |||
x, | |||
y | |||
) | (BOOST_PP_ADD_D(d, r, x), x, BOOST_PP_DEC(y)) |
#define BOOST_PP_MUL_P | ( | d, | |
rxy | |||
) | BOOST_PP_TUPLE_ELEM(3, 2, rxy) |