You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
584 B

  1. --- a/boost/math/tools/roots.hpp
  2. +++ b/boost/math/tools/roots.hpp
  3. @@ -665,8 +665,8 @@ namespace detail
  4. inline T discriminant(T const & a, T const & b, T const & c)
  5. {
  6. T w = 4*a*c;
  7. - T e = std::fma(-c, 4*a, w);
  8. - T f = std::fma(b, b, -w);
  9. + T e = fma(-c, 4*a, w);
  10. + T f = fma(b, b, -w);
  11. return f + e;
  12. }
  13. }
  14. @@ -674,7 +674,6 @@ namespace detail
  15. template<class T>
  16. auto quadratic_roots(T const& a, T const& b, T const& c)
  17. {
  18. - using std::copysign;
  19. using std::sqrt;
  20. if constexpr (std::is_integral<T>::value)
  21. {