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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user