setup.hpp 853 B

1234567891011121314151617181920212223242526272829
  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. #ifndef BOOST_MP_MATH_SETUP_HPP
  5. #define BOOST_MP_MATH_SETUP_HPP
  6. #ifdef _MSC_VER
  7. # define _SCL_SECURE_NO_WARNINGS
  8. #endif
  9. #define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
  10. #include <boost/cstdfloat.hpp>
  11. #include <boost/static_assert.hpp>
  12. #define ALL_TESTS test(boost::floatmax_t(0), "boost::floatmax_t");
  13. typedef boost::floatmax_t test_type_1;
  14. BOOST_STATIC_ASSERT_MSG(std::numeric_limits<boost::floatmax_t>::digits == 113, "These tests should only be run for 128-bit floating point types.");
  15. #ifndef BOOST_MATH_TEST_TYPE
  16. #define BOOST_TEST_MAIN
  17. #include <boost/test/unit_test.hpp>
  18. #include <boost/test/tools/floating_point_comparison.hpp>
  19. #endif
  20. #endif