]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/performance/sf_performance_bessel.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / multiprecision / performance / sf_performance_bessel.cpp
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 http://www.boost.org/LICENSE_1_
5
6 #include "sf_performance.hpp"
7
8 void bessel_tests_1();
9 void bessel_tests_2();
10 void bessel_tests_3();
11 void bessel_tests_4();
12 void bessel_tests_5();
13 void bessel_tests_6();
14
15 void bessel_tests()
16 {
17 //
18 // 50 digits first:
19 //
20 std::cout << "Testing Bessel Functions at 50 digits....." << std::endl;
21 #if defined(TEST_MPFR) || defined(TEST_MPFR_CLASS)
22 mpfr_set_default_prec(50 * 1000L / 301L);
23 #endif
24 #ifdef TEST_MPREAL
25 mpfr::mpreal::set_default_prec(50 * 1000L / 301L);
26 #endif
27
28 bessel_tests_1();
29 bessel_tests_2();
30 bessel_tests_3();
31
32 //
33 // Then 100 digits:
34 //
35 std::cout << "Testing Bessel Functions at 100 digits....." << std::endl;
36 #if defined(TEST_MPFR) || defined(TEST_MPFR_CLASS)
37 mpfr_set_default_prec(100 * 1000L / 301L);
38 #endif
39 bessel_tests_4();
40 bessel_tests_5();
41 bessel_tests_6();
42 }