]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/preprocessor/repetition/deduce_r.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / preprocessor / repetition / deduce_r.hpp
1 # /* **************************************************************************
2 # * *
3 # * (C) Copyright Paul Mensonides 2002.
4 # * Distributed under the Boost Software License, Version 1.0. (See
5 # * accompanying file LICENSE_1_0.txt or copy at
6 # * http://www.boost.org/LICENSE_1_0.txt)
7 # * *
8 # ************************************************************************** */
9 #
10 # /* Revised by Edward Diener (2020) */
11 #
12 # /* See http://www.boost.org for most recent version. */
13 #
14 # ifndef BOOST_PREPROCESSOR_REPETITION_DEDUCE_R_HPP
15 # define BOOST_PREPROCESSOR_REPETITION_DEDUCE_R_HPP
16 #
17 # include <boost/preprocessor/config/config.hpp>
18 #
19 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
20 #
21 # include <boost/preprocessor/detail/auto_rec.hpp>
22 # include <boost/preprocessor/repetition/for.hpp>
23 #
24 # /* BOOST_PP_DEDUCE_R */
25 #
26 # define BOOST_PP_DEDUCE_R() BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 256)
27 #
28 # else
29 #
30 # /* BOOST_PP_DEDUCE_R */
31 #
32 # include <boost/preprocessor/arithmetic/dec.hpp>
33 # include <boost/preprocessor/detail/auto_rec.hpp>
34 # include <boost/preprocessor/repetition/for.hpp>
35 # include <boost/preprocessor/config/limits.hpp>
36 #
37 # if BOOST_PP_LIMIT_FOR == 256
38 # define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 256))
39 # elif BOOST_PP_LIMIT_FOR == 512
40 # define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 512))
41 # elif BOOST_PP_LIMIT_FOR == 1024
42 # define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 1024))
43 # else
44 # error Incorrect value for the BOOST_PP_LIMIT_FOR limit
45 # endif
46 #
47 # endif
48 #
49 # endif