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/detail/div_base.hpp@4:bd0c06dd6e92, 2016-02-22 (annotated)
- Committer:
- hideakitai
- Date:
- Mon Feb 22 01:43:48 2016 +0000
- Revision:
- 4:bd0c06dd6e92
- Parent:
- 0:3f9dbf1e2cb0
fix throw error
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_DETAIL_DIV_BASE_HPP |
hideakitai | 0:3f9dbf1e2cb0 | 15 | # define MSGPACK_PREPROCESSOR_ARITHMETIC_DETAIL_DIV_BASE_HPP |
hideakitai | 0:3f9dbf1e2cb0 | 16 | # |
hideakitai | 0:3f9dbf1e2cb0 | 17 | # include <msgpack/preprocessor/arithmetic/inc.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 18 | # include <msgpack/preprocessor/arithmetic/sub.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 19 | # include <msgpack/preprocessor/comparison/less_equal.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 20 | # include <msgpack/preprocessor/config/config.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 21 | # include <msgpack/preprocessor/control/while.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 22 | # include <msgpack/preprocessor/tuple/elem.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 23 | # include <msgpack/preprocessor/tuple/rem.hpp> |
hideakitai | 0:3f9dbf1e2cb0 | 24 | # |
hideakitai | 0:3f9dbf1e2cb0 | 25 | # /* MSGPACK_PP_DIV_BASE */ |
hideakitai | 0:3f9dbf1e2cb0 | 26 | # |
hideakitai | 0:3f9dbf1e2cb0 | 27 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() |
hideakitai | 0:3f9dbf1e2cb0 | 28 | # define MSGPACK_PP_DIV_BASE(x, y) MSGPACK_PP_WHILE(MSGPACK_PP_DIV_BASE_P, MSGPACK_PP_DIV_BASE_O, (0, x, y)) |
hideakitai | 0:3f9dbf1e2cb0 | 29 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 30 | # define MSGPACK_PP_DIV_BASE(x, y) MSGPACK_PP_DIV_BASE_I(x, y) |
hideakitai | 0:3f9dbf1e2cb0 | 31 | # define MSGPACK_PP_DIV_BASE_I(x, y) MSGPACK_PP_WHILE(MSGPACK_PP_DIV_BASE_P, MSGPACK_PP_DIV_BASE_O, (0, x, y)) |
hideakitai | 0:3f9dbf1e2cb0 | 32 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 33 | # |
hideakitai | 0:3f9dbf1e2cb0 | 34 | # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_STRICT() |
hideakitai | 0:3f9dbf1e2cb0 | 35 | # define MSGPACK_PP_DIV_BASE_P(d, rxy) MSGPACK_PP_DIV_BASE_P_IM(d, MSGPACK_PP_TUPLE_REM_3 rxy) |
hideakitai | 0:3f9dbf1e2cb0 | 36 | # define MSGPACK_PP_DIV_BASE_P_IM(d, im) MSGPACK_PP_DIV_BASE_P_I(d, im) |
hideakitai | 0:3f9dbf1e2cb0 | 37 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 38 | # define MSGPACK_PP_DIV_BASE_P(d, rxy) MSGPACK_PP_DIV_BASE_P_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 | 39 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 40 | # |
hideakitai | 0:3f9dbf1e2cb0 | 41 | # define MSGPACK_PP_DIV_BASE_P_I(d, r, x, y) MSGPACK_PP_LESS_EQUAL_D(d, y, x) |
hideakitai | 0:3f9dbf1e2cb0 | 42 | # |
hideakitai | 0:3f9dbf1e2cb0 | 43 | # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_STRICT() |
hideakitai | 0:3f9dbf1e2cb0 | 44 | # define MSGPACK_PP_DIV_BASE_O(d, rxy) MSGPACK_PP_DIV_BASE_O_IM(d, MSGPACK_PP_TUPLE_REM_3 rxy) |
hideakitai | 0:3f9dbf1e2cb0 | 45 | # define MSGPACK_PP_DIV_BASE_O_IM(d, im) MSGPACK_PP_DIV_BASE_O_I(d, im) |
hideakitai | 0:3f9dbf1e2cb0 | 46 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 47 | # define MSGPACK_PP_DIV_BASE_O(d, rxy) MSGPACK_PP_DIV_BASE_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 | 48 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 49 | # |
hideakitai | 0:3f9dbf1e2cb0 | 50 | # define MSGPACK_PP_DIV_BASE_O_I(d, r, x, y) (MSGPACK_PP_INC(r), MSGPACK_PP_SUB_D(d, x, y), y) |
hideakitai | 0:3f9dbf1e2cb0 | 51 | # |
hideakitai | 0:3f9dbf1e2cb0 | 52 | # /* MSGPACK_PP_DIV_BASE_D */ |
hideakitai | 0:3f9dbf1e2cb0 | 53 | # |
hideakitai | 0:3f9dbf1e2cb0 | 54 | # if ~MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_EDG() |
hideakitai | 0:3f9dbf1e2cb0 | 55 | # define MSGPACK_PP_DIV_BASE_D(d, x, y) MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_DIV_BASE_P, MSGPACK_PP_DIV_BASE_O, (0, x, y)) |
hideakitai | 0:3f9dbf1e2cb0 | 56 | # else |
hideakitai | 0:3f9dbf1e2cb0 | 57 | # define MSGPACK_PP_DIV_BASE_D(d, x, y) MSGPACK_PP_DIV_BASE_D_I(d, x, y) |
hideakitai | 0:3f9dbf1e2cb0 | 58 | # define MSGPACK_PP_DIV_BASE_D_I(d, x, y) MSGPACK_PP_WHILE_ ## d(MSGPACK_PP_DIV_BASE_P, MSGPACK_PP_DIV_BASE_O, (0, x, y)) |
hideakitai | 0:3f9dbf1e2cb0 | 59 | # endif |
hideakitai | 0:3f9dbf1e2cb0 | 60 | # |
hideakitai | 0:3f9dbf1e2cb0 | 61 | # endif |