New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
limits.hpp in vendors/XIOS/current/extern/boost/include/boost/numeric/interval – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/numeric/interval/limits.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1/* Boost interval/limits.hpp template implementation file
2 *
3 * Copyright 2000 Jens Maurer
4 * Copyright 2002-2003 Hervé Brönnimann, Guillaume Melquiond, Sylvain Pion
5 *
6 * Distributed under the Boost Software License, Version 1.0.
7 * (See accompanying file LICENSE_1_0.txt or
8 * copy at http://www.boost.org/LICENSE_1_0.txt)
9 */
10
11#ifndef BOOST_NUMERIC_INTERVAL_LIMITS_HPP
12#define BOOST_NUMERIC_INTERVAL_LIMITS_HPP
13
14#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
15
16#include <boost/config.hpp>
17#include <boost/limits.hpp>
18#include <boost/numeric/interval/detail/interval_prototype.hpp>
19
20namespace std {
21
22template<class T, class Policies>
23class numeric_limits<boost::numeric::interval<T, Policies> >
24  : public numeric_limits<T>
25{
26private:
27  typedef boost::numeric::interval<T, Policies> I;
28  typedef numeric_limits<T> bl;
29public:
30  static I min BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return I((bl::min)(), (bl::min)()); }
31  static I max BOOST_PREVENT_MACRO_SUBSTITUTION () throw() { return I((bl::max)(), (bl::max)()); }
32  static I epsilon() throw() { return I(bl::epsilon(), bl::epsilon()); }
33
34  BOOST_STATIC_CONSTANT(float_round_style, round_style = round_indeterminate);
35  BOOST_STATIC_CONSTANT(bool, is_iec559 = false);
36
37  static I infinity () throw() { return I::whole(); }
38  static I quiet_NaN() throw() { return I::empty(); }
39  static I signaling_NaN() throw()
40  { return I(bl::signaling_NaN(), bl::signaling_Nan()); }
41  static I denorm_min() throw()
42  { return I(bl::denorm_min(), bl::denorm_min()); }
43private:
44  static I round_error();    // hide this on purpose, not yet implemented
45};
46
47} // namespace std
48
49#endif
50
51#endif // BOOST_NUMERIC_INTERVAL_LIMITS_HPP
Note: See TracBrowser for help on using the repository browser.