1 // Copyright 2014 John Maddock. Distributed under the Boost 2 // Software License, Version 1.0. (See accompanying file 3 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_ 4 5 #ifndef BOOST_MP_MATH_SETUP_HPP 6 #define BOOST_MP_MATH_SETUP_HPP 7 8 #ifdef _MSC_VER 9 # define _SCL_SECURE_NO_WARNINGS 10 #endif 11 12 #define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error 13 14 #include <boost/cstdfloat.hpp> 15 #include <boost/static_assert.hpp> 16 17 #define ALL_TESTS test(boost::floatmax_t(0), "boost::floatmax_t"); 18 typedef boost::floatmax_t test_type_1; 19 20 BOOST_STATIC_ASSERT_MSG(std::numeric_limits<boost::floatmax_t>::digits == 113, "These tests should only be run for 128-bit floating point types."); 21 22 #ifndef BOOST_MATH_TEST_TYPE 23 #define BOOST_TEST_MAIN 24 #include <boost/test/unit_test.hpp> 25 #include <boost/test/tools/floating_point_comparison.hpp> 26 #endif 27 28 #endif 29 30