sf_performance_nct6.cpp 742 B

12345678910111213141516171819202122232425
  1. ///////////////////////////////////////////////////////////////
  2. // Copyright 2011 John Maddock. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
  5. #include "sf_performance.hpp"
  6. void nct_tests_6()
  7. {
  8. #ifdef TEST_MPREAL
  9. mpfr::mpreal::set_default_prec(100 * 1000L / 301L);
  10. #endif
  11. #ifdef TEST_CPP_DEC_FLOAT
  12. time_proc("cpp_dec_float_100", test_nct<cpp_dec_float_100>);
  13. #endif
  14. #ifdef TEST_CPP_BIN_FLOAT
  15. time_proc("cpp_bin_float_100", test_nct<cpp_bin_float_100>);
  16. #endif
  17. #ifdef TEST_MPFR_CLASS
  18. time_proc("mpfr_class", test_nct<mpfr_class>);
  19. #endif
  20. #ifdef TEST_MPREAL
  21. time_proc("mpfr::mpreal", test_nct<mpfr::mpreal>);
  22. #endif
  23. }