Skip to content

Commit 9f688c4

Browse files
committed
Add temporary fma for d32f
1 parent 5d117e6 commit 9f688c4

File tree

1 file changed

+10
-0
lines changed
  • include/boost/decimal/detail/cmath

1 file changed

+10
-0
lines changed

include/boost/decimal/detail/cmath/fma.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ constexpr auto fmad128(decimal128 x, decimal128 y, decimal128 z) noexcept -> dec
157157
return x * y + z;
158158
}
159159

160+
constexpr auto fmad32f(decimal32_fast x, decimal32_fast y, decimal32_fast z) noexcept -> decimal32_fast
161+
{
162+
return x * y + z;
163+
}
164+
160165
BOOST_DECIMAL_EXPORT constexpr auto fma(decimal32 x, decimal32 y, decimal32 z) noexcept -> decimal32
161166
{
162167
return fmad32(x, y, z);
@@ -172,6 +177,11 @@ BOOST_DECIMAL_EXPORT constexpr auto fma(decimal128 x, decimal128 y, decimal128 z
172177
return fmad128(x, y, z);
173178
}
174179

180+
BOOST_DECIMAL_EXPORT constexpr auto fma(decimal32_fast x, decimal32_fast y, decimal32_fast z) noexcept -> decimal32_fast
181+
{
182+
return fmad32f(x, y, z);
183+
}
184+
175185
} //namespace decimal
176186
} //namespace boost
177187

0 commit comments

Comments
 (0)