Skip to content

Commit 8435aef

Browse files
authored
Merge pull request #1044 from boostorg/next
Fix detection of ccmath usage in trunc
2 parents 36a3dbd + d298a15 commit 8435aef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/boost/math/special_functions/trunc.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
#include <boost/math/tools/config.hpp>
1717
#include <boost/math/policies/error_handling.hpp>
1818
#include <boost/math/special_functions/fpclassify.hpp>
19+
#include <boost/math/tools/is_constant_evaluated.hpp>
1920

2021
#ifndef BOOST_NO_CXX17_IF_CONSTEXPR
21-
#include <boost/math/ccmath/ldexp.hpp>
2222
# if !defined(BOOST_MATH_NO_CONSTEXPR_DETECTION)
23+
# include <boost/math/ccmath/ldexp.hpp>
2324
# define BOOST_MATH_HAS_CONSTEXPR_LDEXP
2425
# endif
2526
#endif

test/cohen_acceleration_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void test_divergent()
7171
{
7272
auto g = Divergent<Real>();
7373
Real x = -cohen_acceleration(g);
74-
CHECK_ULP_CLOSE(log(pi<Real>()/2)/2, x, (std::numeric_limits<Real>::digits > 100 ? 350 : 135));
74+
CHECK_ULP_CLOSE(log(pi<Real>()/2)/2, x, (std::numeric_limits<Real>::digits > 100 ? 350 : 150));
7575
}
7676

7777
int main()

0 commit comments

Comments
 (0)