/* Boost interval/hw_rounding.hpp template implementation file * * Copyright 2002 Hervé Brönnimann, Guillaume Melquiond, Sylvain Pion * Copyright 2005 Guillaume Melquiond * * 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) */ #ifndef BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP #define BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP #include #include #define BOOST_NUMERIC_INTERVAL_NO_HARDWARE // define appropriate specialization of rounding_control for built-in types #if defined(__x86_64__) && (defined(__USE_ISOC99) || defined(__APPLE__)) # include #elif defined(__i386__) || defined(_M_IX86) || defined(__BORLANDC__) || defined(_M_X64) # include #elif defined(powerpc) || defined(__powerpc__) || defined(__ppc__) # include #elif defined(sparc) || defined(__sparc__) # include #elif defined(alpha) || defined(__alpha__) # include #elif defined(ia64) || defined(__ia64) || defined(__ia64__) # include #endif #if defined(BOOST_NUMERIC_INTERVAL_NO_HARDWARE) && (defined(__USE_ISOC99) || defined(__MSL__)) # include #endif #if defined(BOOST_NUMERIC_INTERVAL_NO_HARDWARE) # undef BOOST_NUMERIC_INTERVAL_NO_HARDWARE # error Boost.Numeric.Interval: Please specify rounding control mechanism. #endif namespace boost { namespace numeric { namespace interval_lib { /* * Three specializations of rounded_math */ template<> struct rounded_math : save_state > {}; template<> struct rounded_math : save_state > {}; template<> struct rounded_math : save_state > {}; } // namespace interval_lib } // namespace numeric } // namespace boost #endif // BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP