|
1 | 1 | ///////////////////////////////////////////////////////////////////////////////
|
2 |
| -// Copyright John Maddock 2016. |
3 |
| -// Copyright Christopher Kormanyos 2016. |
| 2 | +// Copyright John Maddock 2016. |
| 3 | +// Copyright Christopher Kormanyos 2016 - 2024. |
4 | 4 | // Distributed under the Boost Software License,
|
5 | 5 | // Version 1.0. (See accompanying file LICENSE_1_0.txt
|
6 | 6 | // or copy at http://www.boost.org/LICENSE_1_0.txt)
|
7 | 7 | //
|
8 | 8 |
|
9 |
| -#include <cmath> |
10 |
| -#include <iomanip> |
11 |
| -#include <iostream> |
12 |
| -#include <limits> |
13 |
| -#include <string> |
14 |
| - |
15 | 9 | #include <boost/lexical_cast.hpp>
|
16 | 10 | #ifdef TEST_MPC
|
17 | 11 | #include <boost/multiprecision/mpc.hpp>
|
|
21 | 15 | #ifdef BOOST_HAS_FLOAT128
|
22 | 16 | #include <boost/multiprecision/complex128.hpp>
|
23 | 17 | #endif
|
| 18 | +#ifdef TEST_CPP_DOUBLE_FLOAT |
| 19 | +#include <boost/multiprecision/cpp_double_fp.hpp> |
| 20 | +#endif |
24 | 21 |
|
25 | 22 | #include "test.hpp"
|
26 | 23 |
|
| 24 | +#include <cmath> |
| 25 | +#include <iomanip> |
| 26 | +#include <iostream> |
| 27 | +#include <limits> |
| 28 | +#include <string> |
| 29 | + |
27 | 30 | namespace local {
|
28 | 31 | template <typename complex_type>
|
29 | 32 | void test()
|
@@ -166,5 +169,22 @@ int main()
|
166 | 169 | #ifdef BOOST_HAS_FLOAT128
|
167 | 170 | local::test<boost::multiprecision::complex128>();
|
168 | 171 | #endif
|
| 172 | + |
| 173 | +#if defined(TEST_CPP_DOUBLE_FLOAT) |
| 174 | + { |
| 175 | + using boost::multiprecision::cpp_double_double; |
| 176 | + using boost::multiprecision::cpp_double_long_double; |
| 177 | + #if defined(BOOST_HAS_FLOAT128) |
| 178 | + using boost::multiprecision::cpp_double_float128; |
| 179 | + #endif |
| 180 | + |
| 181 | + local::test<boost::multiprecision::number<boost::multiprecision::complex_adaptor<cpp_double_double>, boost::multiprecision::et_off>>(); |
| 182 | + local::test<boost::multiprecision::number<boost::multiprecision::complex_adaptor<cpp_double_long_double>, boost::multiprecision::et_off>>(); |
| 183 | +#if defined(BOOST_HAS_FLOAT128) |
| 184 | + local::test<boost::multiprecision::number<boost::multiprecision::complex_adaptor<cpp_double_float128>, boost::multiprecision::et_off>>(); |
| 185 | +#endif |
| 186 | + } |
| 187 | +#endif |
| 188 | + |
169 | 189 | return boost::report_errors();
|
170 | 190 | }
|
0 commit comments