]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/test_print_info_on_type.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / math / test / test_print_info_on_type.cpp
1 // Copyright John Maddock 2010.
2
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt
6 // or copy at http://www.boost.org/LICENSE_1_0.txt)
7
8 #include <boost/math/constants/info.hpp>
9 #include <boost/math/concepts/real_concept.hpp>
10
11 int main()
12 {
13 boost::math::constants::print_info_on_type<float>();
14 boost::math::constants::print_info_on_type<double>();
15 boost::math::constants::print_info_on_type<long double>();
16 boost::math::constants::print_info_on_type<boost::math::concepts::real_concept>();
17
18 return 0;
19 }
20
21 /*
22
23 ------ Rebuild All started: Project: test_print_info_on_type, Configuration: Debug Win32 ------
24 test_print_info_on_type.cpp
25 test_print_info_on_type.vcxproj -> J:\Cpp\math_constants\Debug\test_print_info_on_type.exe
26 Information on the Implementation and Handling of
27 Mathematical Constants for Type float
28
29 Checking for std::numeric_limits<float> specialisation: yes
30 std::numeric_limits<float>::digits reports that the precision is
31 24 binary digits.
32 boost::math::policies::precision<float, Policy> reports that the compile time precision is
33 24 binary digits.
34 The constant will be constructed from a float.
35
36 Information on the Implementation and Handling of
37 Mathematical Constants for Type double
38
39 Checking for std::numeric_limits<double> specialisation: yes
40 std::numeric_limits<double>::digits reports that the precision is
41 53 binary digits.
42 boost::math::policies::precision<double, Policy> reports that the compile time precision is
43 53 binary digits.
44 The constant will be constructed from a double.
45
46 Information on the Implementation and Handling of
47 Mathematical Constants for Type long double
48
49 Checking for std::numeric_limits<long double> specialisation: yes
50 std::numeric_limits<long double>::digits reports that the precision is
51 53 binary digits.
52 boost::math::policies::precision<long double, Policy> reports that the compile time precision is
53 53 binary digits.
54 The constant will be constructed from a double.
55
56 Information on the Implementation and Handling of
57 Mathematical Constants for Type class boost::math::concepts::real_concept
58
59 Checking for std::numeric_limits<class boost::math::concepts::real_concept> specialisation: no
60 boost::math::policies::precision<class boost::math::concepts::real_concept, Policy>
61 reports that there is no compile type precision available.
62 boost::math::tools::digits<class boost::math::concepts::real_concept>()
63 reports that the current runtime precision is
64 53 binary digits.
65 No compile time precision is available, the construction method
66 will be decided at runtime and results will not be cached
67 - this may lead to poor runtime performance.
68 Current runtime precision indicates that
69 the constant will be constructed from a string on each call.
70
71 ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
72
73
74 */
75