Skip to content

Commit

Permalink
Merge pull request #1044 from boostorg/next
Browse files Browse the repository at this point in the history
Fix detection of ccmath usage in trunc
  • Loading branch information
mborland authored Nov 3, 2023
2 parents 36a3dbd + d298a15 commit 8435aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/boost/math/special_functions/trunc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
#include <boost/math/tools/config.hpp>
#include <boost/math/policies/error_handling.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/math/tools/is_constant_evaluated.hpp>

#ifndef BOOST_NO_CXX17_IF_CONSTEXPR
#include <boost/math/ccmath/ldexp.hpp>
# if !defined(BOOST_MATH_NO_CONSTEXPR_DETECTION)
# include <boost/math/ccmath/ldexp.hpp>
# define BOOST_MATH_HAS_CONSTEXPR_LDEXP
# endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion test/cohen_acceleration_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void test_divergent()
{
auto g = Divergent<Real>();
Real x = -cohen_acceleration(g);
CHECK_ULP_CLOSE(log(pi<Real>()/2)/2, x, (std::numeric_limits<Real>::digits > 100 ? 350 : 135));
CHECK_ULP_CLOSE(log(pi<Real>()/2)/2, x, (std::numeric_limits<Real>::digits > 100 ? 350 : 150));
}

int main()
Expand Down

0 comments on commit 8435aef

Please sign in to comment.