Skip to content

Commit 06f2892

Browse files
committed
Correct syntax of fma_impl specializations
1 parent e361071 commit 06f2892

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/boost/multiprecision/cpp_df_qf/cpp_df_qf_detail_ccmath_fma.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace unsafe {
1818
namespace detail {
1919

2020
template <class T>
21-
constexpr auto fma_impl(T x, T y, T z) noexcept -> T
21+
inline auto fma_impl(T x, T y, T z) noexcept -> T
2222
{
2323
// Default to the written-out operations.
2424

@@ -27,19 +27,19 @@ constexpr auto fma_impl(T x, T y, T z) noexcept -> T
2727

2828
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(__INTEL_LLVM_COMPILER)
2929
template <>
30-
auto fma_impl<float>(float x, float y, float z) noexcept -> float
30+
inline auto fma_impl<float>(float x, float y, float z) noexcept -> float
3131
{
3232
return __builtin_fmaf(x, y, z);
3333
}
3434

3535
template <>
36-
auto fma_impl<double>(double x, double y, double z) noexcept -> double
36+
inline auto fma_impl<double>(double x, double y, double z) noexcept -> double
3737
{
3838
return __builtin_fma(x, y, z);
3939
}
4040

4141
template <>
42-
auto fma_impl<long double>(long double x, long double y, long double z) noexcept -> long double
42+
inline auto fma_impl<long double>(long double x, long double y, long double z) noexcept -> long double
4343
{
4444
return __builtin_fmal(x, y, z);
4545
}
@@ -48,7 +48,7 @@ auto fma_impl<long double>(long double x, long double y, long double z) noexcept
4848
} // namespace detail
4949

5050
template <typename Real>
51-
constexpr auto fma(Real x, Real y, Real z) noexcept -> Real
51+
auto fma(Real x, Real y, Real z) noexcept -> Real
5252
{
5353
return detail::fma_impl(x, y, z);
5454
}

0 commit comments

Comments
 (0)