diff --git a/include/boost/preprocessor/arithmetic/detail/Is_maximum_number.hpp b/include/boost/preprocessor/arithmetic/detail/Is_maximum_number.hpp new file mode 100644 index 0000000..6b77700 --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/Is_maximum_number.hpp @@ -0,0 +1,27 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MAXIMUM_NUMBER_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MAXIMUM_NUMBER_HPP +# +# /* BOOST_PP_DETAIL_IS_MAXIMUM_NUMBER */ +# +# include +# +# if BOOST_PP_DETAIL_MAXIMUM_NUMBER == 256 +# include +# elif BOOST_PP_DETAIL_MAXIMUM_NUMBER == 512 +# include +# else +# error Incorrect value for the BOOST_PP_LIMIT_MAG limit +# endif +# +# endif diff --git a/include/boost/preprocessor/arithmetic/detail/Is_minimum_number.hpp b/include/boost/preprocessor/arithmetic/detail/Is_minimum_number.hpp new file mode 100644 index 0000000..c893d70 --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/Is_minimum_number.hpp @@ -0,0 +1,21 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MINIMUM_NUMBER_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MINIMUM_NUMBER_HPP +# +# /* BOOST_PP_DETAIL_IS_MINIMUM_NUMBER */ +# +# include +# +# define BOOST_PP_DETAIL_IS_MINIMUM_NUMBER(x) BOOST_PP_NOT(x) +# +# endif diff --git a/include/boost/preprocessor/arithmetic/detail/Is_minmax.hpp b/include/boost/preprocessor/arithmetic/detail/Is_minmax.hpp new file mode 100644 index 0000000..98bca0f --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/Is_minmax.hpp @@ -0,0 +1,22 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MINMAX_NUMBER_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MINMAX_NUMBER_HPP +# +# /* BOOST_PP_DETAIL_IS_MINMAX_NUMBER */ +# +# include +# include +# +# define BOOST_PP_DETAIL_IS_MINMAX_NUMBER(x) (BOOST_PP_DETAIL_IS_MINIMUM_NUMBER(x),BOOST_PP_DETAIL_IS_MAXIMUM_NUMBER(x)) +# +# endif diff --git a/include/boost/preprocessor/arithmetic/detail/Is_minmax_both.hpp b/include/boost/preprocessor/arithmetic/detail/Is_minmax_both.hpp new file mode 100644 index 0000000..b205ed3 --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/Is_minmax_both.hpp @@ -0,0 +1,21 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MINMAX_BOTH_NUMBER_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MINMAX_BOTH_NUMBER_HPP +# +# /* BOOST_PP_DETAIL_IS_MINMAX_BOTH_NUMBER */ +# +# include +# +# define BOOST_PP_DETAIL_IS_MINMAX_BOTH_NUMBER(x,y) (BOOST_PP_DETAIL_IS_MINMAX_NUMBER(x),BOOST_PP_DETAIL_IS_MINMAX_NUMBER(y)) +# +# endif diff --git a/include/boost/preprocessor/arithmetic/detail/limits/Is_maximum_number_256.hpp b/include/boost/preprocessor/arithmetic/detail/limits/Is_maximum_number_256.hpp new file mode 100644 index 0000000..aa2e3b0 --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/limits/Is_maximum_number_256.hpp @@ -0,0 +1,21 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MAXIMUM_NUMBER_256_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MAXIMUM_NUMBER_256_HPP +# +# include +# include +# +# define BOOST_PP_DETAIL_IS_MAXIMUM_NUMBER(x) BOOST_PP_IS_EMPTY(BOOST_PP_CAT(BOOST_PP_IS_256_HELPER_, x)) +# define BOOST_PP_IS_256_HELPER_256 +# +# endif diff --git a/include/boost/preprocessor/arithmetic/detail/limits/Is_maximum_number_512.hpp b/include/boost/preprocessor/arithmetic/detail/limits/Is_maximum_number_512.hpp new file mode 100644 index 0000000..a8ae3ab --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/limits/Is_maximum_number_512.hpp @@ -0,0 +1,21 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MAXIMUM_NUMBER_512_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_IS_MAXIMUM_NUMBER_512_HPP +# +# include +# include +# +# define BOOST_PP_DETAIL_IS_MAXIMUM_NUMBER(x) BOOST_PP_IS_EMPTY(BOOST_PP_CAT(BOOST_PP_IS_512_HELPER_, x)) +# define BOOST_PP_IS_512_HELPER_512 +# +# endif diff --git a/include/boost/preprocessor/arithmetic/detail/maximum_number.hpp b/include/boost/preprocessor/arithmetic/detail/maximum_number.hpp new file mode 100644 index 0000000..06b14d4 --- /dev/null +++ b/include/boost/preprocessor/arithmetic/detail/maximum_number.hpp @@ -0,0 +1,19 @@ +# /* ************************************************************************** +# * * +# * (C) Copyright Edward Diener 2020. * +# * Distributed under the Boost Software License, Version 1.0. (See * +# * accompanying file LICENSE_1_0.txt or copy at * +# * http://www.boost.org/LICENSE_1_0.txt) * +# * * +# ************************************************************************** */ +# +# /* See http://www.boost.org for most recent version. */ +# +# ifndef BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_MAXIMUM_NUMBER_HPP +# define BOOST_PREPROCESSOR_ARITHMETIC_DETAIL_MAXIMUM_NUMBER_HPP +# +# include +# +# define BOOST_PP_DETAIL_MAXIMUM_NUMBER BOOST_PP_LIMIT_MAG +# +# endif