Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-06 08:11:22

0001 # /* Copyright (C) 2001
0002 #  * Housemarque Oy
0003 #  * http://www.housemarque.com
0004 #  *
0005 #  * Distributed under the Boost Software License, Version 1.0. (See
0006 #  * accompanying file LICENSE_1_0.txt or copy at
0007 #  * http://www.boost.org/LICENSE_1_0.txt)
0008 #  */
0009 0010 ">#
0011 # /* Revised by Paul Mensonides (2002) */
0012 # /* Revised by Edward Diener (2020) */
0013 0014 ">#
0015 # /* See http://www.boost.org for most recent version. */
0016 0017 ">#
0018 # ifndef BOOST_PREPROCESSOR_ARITHMETIC_MOD_HPP
0019 # define BOOST_PREPROCESSOR_ARITHMETIC_MOD_HPP
0020 0021 ">#
0022 # include <boost/preprocessor/config/config.hpp>
0023 0024 ">#
0025 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
0026 0027 ">#
0028 # include <boost/preprocessor/arithmetic/detail/div_base.hpp>
0029 # include <boost/preprocessor/tuple/elem.hpp>
0030 0031 ">#
0032 # /* BOOST_PP_MOD */
0033 0034 ">#
0035 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0036 #    define BOOST_PP_MOD(x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE(x, y))
0037 # else
0038 #    define BOOST_PP_MOD(x, y) BOOST_PP_MOD_I(x, y)
0039 #    define BOOST_PP_MOD_I(x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE(x, y))
0040 # endif
0041 0042 ">#
0043 # /* BOOST_PP_MOD_D */
0044 0045 ">#
0046 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0047 #    define BOOST_PP_MOD_D(d, x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE_D(d, x, y))
0048 # else
0049 #    define BOOST_PP_MOD_D(d, x, y) BOOST_PP_MOD_D_I(d, x, y)
0050 #    define BOOST_PP_MOD_D_I(d, x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE_D(d, x, y))
0051 # endif
0052 0053 ">#
0054 # else
0055 0056 ">#
0057 # include <boost/preprocessor/arithmetic/detail/div_base.hpp>
0058 # include <boost/preprocessor/control/iif.hpp>
0059 # include <boost/preprocessor/facilities/identity.hpp>
0060 # include <boost/preprocessor/tuple/elem.hpp>
0061 # include <boost/preprocessor/arithmetic/detail/is_1_number.hpp>
0062 0063 ">#
0064 # /* BOOST_PP_MOD */
0065 0066 ">#
0067 #    define BOOST_PP_MOD(x, y) BOOST_PP_IIF(BOOST_PP_DETAIL_IS_1_NUMBER(y),BOOST_PP_IDENTITY_N(0,2),BOOST_PP_MOD_DO)(x,y)
0068 0069 ">#
0070 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0071 #    define BOOST_PP_MOD_DO(x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE(x, y))
0072 # else
0073 #    define BOOST_PP_MOD_DO(x, y) BOOST_PP_MOD_I(x, y)
0074 #    define BOOST_PP_MOD_I(x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE(x, y))
0075 # endif
0076 0077 ">#
0078 # /* BOOST_PP_MOD_D */
0079 0080 ">#
0081 #    define BOOST_PP_MOD_D(d, x, y) BOOST_PP_IIF(BOOST_PP_DETAIL_IS_1_NUMBER(y),BOOST_PP_IDENTITY_N(0,3),BOOST_PP_MOD_DO_D)(d,x,y)
0082 0083 ">#
0084 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0085 #    define BOOST_PP_MOD_DO_D(d, x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE_D(d, x, y))
0086 # else
0087 #    define BOOST_PP_MOD_DO_D(d, x, y) BOOST_PP_MOD_D_I(d, x, y)
0088 #    define BOOST_PP_MOD_D_I(d, x, y) BOOST_PP_TUPLE_ELEM(3, 1, BOOST_PP_DIV_BASE_D(d, x, y))
0089 # endif
0090 0091 ">#
0092 # endif
0093 0094 ">#
0095 # endif