Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello_message_pack
include/msgpack/preprocessor/arithmetic/mul.hpp@0:3f9dbf1e2cb0, 2016-02-13 (annotated)
- Committer:
- hideakitai
- Date:
- Sat Feb 13 01:53:11 2016 +0000
- Revision:
- 0:3f9dbf1e2cb0
first commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| hideakitai | 0:3f9dbf1e2cb0 | 1 | # /* Copyright (C) 2001 | 
| hideakitai | 0:3f9dbf1e2cb0 | 2 | # * Housemarque Oy | 
| hideakitai | 0:3f9dbf1e2cb0 | 3 | # * http://www.housemarque.com | 
| hideakitai | 0:3f9dbf1e2cb0 | 4 | # * | 
| hideakitai | 0:3f9dbf1e2cb0 | 5 | # * Distributed under the Boost Software License, Version 1.0. (See | 
| hideakitai | 0:3f9dbf1e2cb0 | 6 | # * accompanying file LICENSE_1_0.txt or copy at | 
| hideakitai | 0:3f9dbf1e2cb0 | 7 | # * http://www.boost.org/LICENSE_1_0.txt) | 
| hideakitai | 0:3f9dbf1e2cb0 | 8 | # */ | 
| hideakitai | 0:3f9dbf1e2cb0 | 9 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 10 | # /* Revised by Paul Mensonides (2002) */ | 
| hideakitai | 0:3f9dbf1e2cb0 | 11 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 12 | # /* See http://www.boost.org for most recent version. */ | 
| hideakitai | 0:3f9dbf1e2cb0 | 13 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 14 | # ifndef MSGPACK_PREPROCESSOR_ARITHMETIC_MUL_HPP | 
| hideakitai | 0:3f9dbf1e2cb0 | 15 | # define MSGPACK_PREPROCESSOR_ARITHMETIC_MUL_HPP | 
| hideakitai | 0:3f9dbf1e2cb0 | 16 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 17 | # include <msgpack/preprocessor/arithmetic/add.hpp> | 
| hideakitai | 0:3f9dbf1e2cb0 | 18 | # include <msgpack/preprocessor/arithmetic/dec.hpp> | 
| hideakitai | 0:3f9dbf1e2cb0 | 19 | # include <msgpack/preprocessor/config/config.hpp> | 
| hideakitai | 0:3f9dbf1e2cb0 | 20 | # include <msgpack/preprocessor/control/while.hpp> | 
| hideakitai | 0:3f9dbf1e2cb0 | 21 | # include <msgpack/preprocessor/tuple/elem.hpp> | 
| hideakitai | 0:3f9dbf1e2cb0 | 22 | # include <msgpack/preprocessor/tuple/rem.hpp> | 
| hideakitai | 0:3f9dbf1e2cb0 | 23 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 24 | # /* MSGPACK_PP_MUL */ | 
| hideakitai | 0:3f9dbf1e2cb0 | 25 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 26 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() | 
| hideakitai | 0:3f9dbf1e2cb0 | 27 | # define MSGPACK_PP_MUL(x, y) MSGPACK_PP_TUPLE_ELEM(3, 0, MSGPACK_PP_WHILE(MSGPACK_PP_MUL_P, MSGPACK_PP_MUL_O, (0, x, y))) | 
| hideakitai | 0:3f9dbf1e2cb0 | 28 | # else | 
| hideakitai | 0:3f9dbf1e2cb0 | 29 | # define MSGPACK_PP_MUL(x, y) MSGPACK_PP_MUL_I(x, y) | 
| hideakitai | 0:3f9dbf1e2cb0 | 30 | # 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))) | 
| hideakitai | 0:3f9dbf1e2cb0 | 31 | # endif | 
| hideakitai | 0:3f9dbf1e2cb0 | 32 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 33 | # define MSGPACK_PP_MUL_P(d, rxy) MSGPACK_PP_TUPLE_ELEM(3, 2, rxy) | 
| hideakitai | 0:3f9dbf1e2cb0 | 34 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 35 | # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_STRICT() | 
| hideakitai | 0:3f9dbf1e2cb0 | 36 | # define MSGPACK_PP_MUL_O(d, rxy) MSGPACK_PP_MUL_O_IM(d, MSGPACK_PP_TUPLE_REM_3 rxy) | 
| hideakitai | 0:3f9dbf1e2cb0 | 37 | # define MSGPACK_PP_MUL_O_IM(d, im) MSGPACK_PP_MUL_O_I(d, im) | 
| hideakitai | 0:3f9dbf1e2cb0 | 38 | # else | 
| hideakitai | 0:3f9dbf1e2cb0 | 39 | # 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)) | 
| hideakitai | 0:3f9dbf1e2cb0 | 40 | # endif | 
| hideakitai | 0:3f9dbf1e2cb0 | 41 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 42 | # define MSGPACK_PP_MUL_O_I(d, r, x, y) (MSGPACK_PP_ADD_D(d, r, x), x, MSGPACK_PP_DEC(y)) | 
| hideakitai | 0:3f9dbf1e2cb0 | 43 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 44 | # /* MSGPACK_PP_MUL_D */ | 
| hideakitai | 0:3f9dbf1e2cb0 | 45 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 46 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() | 
| hideakitai | 0:3f9dbf1e2cb0 | 47 | # define MSGPACK_PP_MUL_D(d, x, y) MSGPACK_PP_TUPLE_ELEM(3, 0, MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_MUL_P, MSGPACK_PP_MUL_O, (0, x, y))) | 
| hideakitai | 0:3f9dbf1e2cb0 | 48 | # else | 
| hideakitai | 0:3f9dbf1e2cb0 | 49 | # define MSGPACK_PP_MUL_D(d, x, y) MSGPACK_PP_MUL_D_I(d, x, y) | 
| hideakitai | 0:3f9dbf1e2cb0 | 50 | # 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))) | 
| hideakitai | 0:3f9dbf1e2cb0 | 51 | # endif | 
| hideakitai | 0:3f9dbf1e2cb0 | 52 | # | 
| hideakitai | 0:3f9dbf1e2cb0 | 53 | # endif |