2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Correct concept failures.

This commit is contained in:
jzmaddock
2024-02-08 19:56:27 +00:00
parent d6ec06df3a
commit b8ea32436a
3 changed files with 3 additions and 3 deletions

View File

@@ -360,7 +360,7 @@ int bessel_ik(T v, T x, T* result_I, T* result_K, int kind, const Policy& pol)
{
prev /= current;
scale /= current;
scale_sign *= (boost::math::signbit(current) ? -1 : 1);
scale_sign *= ((boost::math::signbit)(current) ? -1 : 1);
current = 1;
}
next = fact * current + prev;

View File

@@ -75,7 +75,7 @@ T bessel_kn(int n, T x, const Policy& pol)
}
while(k < n);
if (tools::max_value<T>() * scale < fabs(value))
return (signbit(scale) ? -1 : 1) * sign(value) * policies::raise_overflow_error<T>(function, nullptr, pol);
return ((boost::math::signbit)(scale) ? -1 : 1) * sign(value) * policies::raise_overflow_error<T>(function, nullptr, pol);
value /= scale;
}
return value;

View File

@@ -245,7 +245,7 @@ void test_bessel(T, const char* name)
#endif
BOOST_IF_CONSTEXPR(std::numeric_limits<T>::has_infinity && (std::numeric_limits<T>::min_exponent < -1072))
{
static const std::array<std::array<typename table_type<T>::type, 3>, 5> coverage_data = { {
static const std::array<std::array<T, 3>, 5> coverage_data = { {
#if LDBL_MAX_10_EXP > 4931
{{ SC_(15.25), ldexp(T(1), -1071), SC_(-9.39553199265929955912687892204143267985847111378392154596e4931)}},
#else