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_
5 #ifndef BOOST_MP_MATH_SETUP_HPP
6 #define BOOST_MP_MATH_SETUP_HPP
9 # define _SCL_SECURE_NO_WARNINGS
12 #define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
14 #include <boost/cstdfloat.hpp>
15 #include <boost/static_assert.hpp>
17 #define ALL_TESTS test(boost::floatmax_t(0), "boost::floatmax_t");
18 typedef boost::floatmax_t test_type_1;
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.");
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>