1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef BOOST_NUMERIC_INTERVAL_DETAIL_C99_ROUNDING_CONTROL_HPP
- #define BOOST_NUMERIC_INTERVAL_DETAIL_C99_ROUNDING_CONTROL_HPP
- #include <boost/numeric/interval/detail/c99sub_rounding_control.hpp>
- namespace boost {
- namespace numeric {
- namespace interval_lib {
- template<>
- struct rounding_control<float>:
- detail::c99_rounding_control
- {
- static float force_rounding(float const &r)
- { volatile float r_ = r; return r_; }
- };
- template<>
- struct rounding_control<double>:
- detail::c99_rounding_control
- {
- static double force_rounding(double const &r)
- { volatile double r_ = r; return r_; }
- };
- template<>
- struct rounding_control<long double>:
- detail::c99_rounding_control
- {
- static long double force_rounding(long double const &r)
- { volatile long double r_ = r; return r_; }
- };
- }
- }
- }
- #undef BOOST_NUMERIC_INTERVAL_NO_HARDWARE
- #endif
|