mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-19 02:22:17 +00:00
Complex: Get arithmetic tests passing.
This commit is contained in:
@@ -126,6 +126,8 @@ run test_arithmetic_mpfi_50.cpp mpfi mpfr gmp no_eh_support : : : [ check-target
|
||||
run test_arithmetic_float_128.cpp quadmath no_eh_support : : : [ check-target-builds ../config//has_float128 : : <build>no ] ;
|
||||
run test_arithmetic_float_128.cpp no_eh_support : : : [ check-target-builds ../config//has_intel_quad : <cxxflags>-Qoption,cpp,--extended_float_type : <build>no ] [ check-target-builds ../config//has_float128 : <source>quadmath ] : test_arithmetic_intel_quad ;
|
||||
|
||||
run test_arithmetic_mpc.cpp ;
|
||||
|
||||
run test_numeric_limits.cpp no_eh_support
|
||||
: # command line
|
||||
: # input files
|
||||
@@ -1141,6 +1143,7 @@ alias arithmetic_tests :
|
||||
test_arithmetic_mpfi_50
|
||||
test_arithmetic_float_128
|
||||
test_arithmetic_float_128
|
||||
test_arithmetic_mpc.cpp
|
||||
;
|
||||
|
||||
alias cpp_int_tests :
|
||||
|
||||
@@ -1702,6 +1702,7 @@ inline Real negate_value(const Real& val, const boost::mpl::false_&)
|
||||
template <class Real, class Num>
|
||||
void test_mixed_numeric_limits(const boost::mpl::true_&)
|
||||
{
|
||||
Real d;
|
||||
if (std::numeric_limits<Real>::has_infinity && std::numeric_limits<Num>::has_infinity)
|
||||
{
|
||||
d = static_cast<Real>(std::numeric_limits<Num>::infinity());
|
||||
|
||||
Reference in New Issue
Block a user