os/ossrv/ossrv_pub/boost_apis/boost/random/ranlux.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/random/ranlux.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,50 @@
     1.4 +/* boost random/ranlux.hpp header file
     1.5 + *
     1.6 + * Copyright Jens Maurer 2002
     1.7 + * Distributed under the Boost Software License, Version 1.0. (See
     1.8 + * accompanying file LICENSE_1_0.txt or copy at
     1.9 + * http://www.boost.org/LICENSE_1_0.txt)
    1.10 + *
    1.11 + * See http://www.boost.org for most recent version including documentation.
    1.12 + *
    1.13 + * $Id: ranlux.hpp,v 1.5 2004/07/27 03:43:32 dgregor Exp $
    1.14 + *
    1.15 + * Revision history
    1.16 + *  2001-02-18  created
    1.17 + */
    1.18 +
    1.19 +#ifndef BOOST_RANDOM_RANLUX_HPP
    1.20 +#define BOOST_RANDOM_RANLUX_HPP
    1.21 +
    1.22 +#include <boost/config.hpp>
    1.23 +#include <boost/random/subtract_with_carry.hpp>
    1.24 +#include <boost/random/discard_block.hpp>
    1.25 +
    1.26 +namespace boost {
    1.27 +
    1.28 +namespace random {
    1.29 +  typedef subtract_with_carry<int, (1<<24), 10, 24, 0> ranlux_base;
    1.30 +  typedef subtract_with_carry_01<float, 24, 10, 24> ranlux_base_01;
    1.31 +  typedef subtract_with_carry_01<double, 48, 10, 24> ranlux64_base_01;
    1.32 +}
    1.33 +
    1.34 +typedef random::discard_block<random::ranlux_base, 223, 24> ranlux3;
    1.35 +typedef random::discard_block<random::ranlux_base, 389, 24> ranlux4;
    1.36 +
    1.37 +typedef random::discard_block<random::ranlux_base_01, 223, 24> ranlux3_01;
    1.38 +typedef random::discard_block<random::ranlux_base_01, 389, 24> ranlux4_01;
    1.39 +
    1.40 +typedef random::discard_block<random::ranlux64_base_01, 223, 24> ranlux64_3_01;
    1.41 +typedef random::discard_block<random::ranlux64_base_01, 389, 24> ranlux64_4_01;
    1.42 +
    1.43 +#if !defined(BOOST_NO_INT64_T) && !defined(BOOST_NO_INTEGRAL_INT64_T)
    1.44 +namespace random {
    1.45 +  typedef random::subtract_with_carry<int64_t, (int64_t(1)<<48), 10, 24, 0> ranlux64_base;
    1.46 +}
    1.47 +typedef random::discard_block<random::ranlux64_base, 223, 24> ranlux64_3;
    1.48 +typedef random::discard_block<random::ranlux64_base, 389, 24> ranlux64_4;
    1.49 +#endif /* !BOOST_NO_INT64_T && !BOOST_NO_INTEGRAL_INT64_T */
    1.50 +
    1.51 +} // namespace boost
    1.52 +
    1.53 +#endif // BOOST_RANDOM_LINEAR_CONGRUENTIAL_HPP