Skip to content

Commit 9dc4e7e

Browse files
committed
Use unchecked fma to speed up spec fun
1 parent f0e3e4d commit 9dc4e7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ constexpr auto remez_series_result(T x, const Array &coeffs) noexcept
2020
result = coeffs[0];
2121
for (std::size_t i {1}; i < coeffs.size(); ++i)
2222
{
23-
result = fma(result, x, coeffs[i]);
23+
result = unchecked_fma(result, x, coeffs[i]);
2424
}
2525

2626
return result;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ constexpr auto taylor_series_result(T x, const Array &coeffs) noexcept
2121

2222
for (std::size_t i = N - 1; i-- > 0;)
2323
{
24-
result = fma(result, x, coeffs[i]);
24+
result = unchecked_fma(result, x, coeffs[i]);
2525
}
2626

2727
return result;

0 commit comments

Comments
 (0)