MessagePack for C++
Macros
mul.hpp File Reference
#include <msgpack/preprocessor/arithmetic/add.hpp>
#include <msgpack/preprocessor/arithmetic/dec.hpp>
#include <msgpack/preprocessor/config/config.hpp>
#include <msgpack/preprocessor/control/while.hpp>
#include <msgpack/preprocessor/tuple/elem.hpp>
#include <msgpack/preprocessor/tuple/rem.hpp>

Go to the source code of this file.

Macros

#define MSGPACK_PP_MUL(x, y)   MSGPACK_PP_MUL_I(x, y)
 
#define MSGPACK_PP_MUL_I(x, y)   MSGPACK_PP_TUPLE_ELEM(3, 0, MSGPACK_PP_WHILE(MSGPACK_PP_MUL_P, MSGPACK_PP_MUL_O, (0, x, y)))
 
#define MSGPACK_PP_MUL_P(d, rxy)   MSGPACK_PP_TUPLE_ELEM(3, 2, rxy)
 
#define MSGPACK_PP_MUL_O(d, rxy)   MSGPACK_PP_MUL_O_I(d, MSGPACK_PP_TUPLE_ELEM(3, 0, rxy), MSGPACK_PP_TUPLE_ELEM(3, 1, rxy), MSGPACK_PP_TUPLE_ELEM(3, 2, rxy))
 
#define MSGPACK_PP_MUL_O_I(d, r, x, y)   (MSGPACK_PP_ADD_D(d, r, x), x, MSGPACK_PP_DEC(y))
 
#define MSGPACK_PP_MUL_D(d, x, y)   MSGPACK_PP_MUL_D_I(d, x, y)
 
#define MSGPACK_PP_MUL_D_I(d, x, y)   MSGPACK_PP_TUPLE_ELEM(3, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_MUL_P, MSGPACK_PP_MUL_O, (0, x, y)))
 

Macro Definition Documentation

◆ MSGPACK_PP_MUL

#define MSGPACK_PP_MUL (   x,
 
)    MSGPACK_PP_MUL_I(x, y)

◆ MSGPACK_PP_MUL_D

#define MSGPACK_PP_MUL_D (   d,
  x,
 
)    MSGPACK_PP_MUL_D_I(d, x, y)

◆ MSGPACK_PP_MUL_D_I

#define MSGPACK_PP_MUL_D_I (   d,
  x,
 
)    MSGPACK_PP_TUPLE_ELEM(3, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_MUL_P, MSGPACK_PP_MUL_O, (0, x, y)))

◆ MSGPACK_PP_MUL_I

#define MSGPACK_PP_MUL_I (   x,
 
)    MSGPACK_PP_TUPLE_ELEM(3, 0, MSGPACK_PP_WHILE(MSGPACK_PP_MUL_P, MSGPACK_PP_MUL_O, (0, x, y)))

◆ MSGPACK_PP_MUL_O

#define MSGPACK_PP_MUL_O (   d,
  rxy 
)    MSGPACK_PP_MUL_O_I(d, MSGPACK_PP_TUPLE_ELEM(3, 0, rxy), MSGPACK_PP_TUPLE_ELEM(3, 1, rxy), MSGPACK_PP_TUPLE_ELEM(3, 2, rxy))

◆ MSGPACK_PP_MUL_O_I

#define MSGPACK_PP_MUL_O_I (   d,
  r,
  x,
 
)    (MSGPACK_PP_ADD_D(d, r, x), x, MSGPACK_PP_DEC(y))

◆ MSGPACK_PP_MUL_P

#define MSGPACK_PP_MUL_P (   d,
  rxy 
)    MSGPACK_PP_TUPLE_ELEM(3, 2, rxy)