Skip to content

Commit 754fb11

Browse files
committed
Remove workaround
1 parent 94c0413 commit 754fb11

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

include/boost/decimal/detail/cmath/impl/taylor_series_result.hpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,6 @@ constexpr auto taylor_series_result(T x, const Array &coeffs) noexcept
2727
return result;
2828
}
2929

30-
template <typename Array>
31-
constexpr auto taylor_series_result(boost::decimal::decimal128 x, const Array &coeffs) noexcept
32-
{
33-
const std::size_t N = coeffs.size();
34-
35-
auto result = coeffs[N - 1];
36-
37-
auto my_own_fma =
38-
[](boost::decimal::decimal128 x, boost::decimal::decimal128 y, boost::decimal::decimal128 z)
39-
{
40-
return (x * y) + z;
41-
};
42-
43-
for (std::size_t i = N - 1; i-- > 0;)
44-
{
45-
result = my_own_fma(result, x, coeffs[i]);
46-
}
47-
48-
return result;
49-
}
50-
5130
} //namespace detail
5231
} //namespace decimal
5332
} //namespace boost

0 commit comments

Comments
 (0)