Fused multiply-add implementation. \param x first operand \param y second operand \param z third operand \return \a x * \a y + \a z stored in single-precision
| 1747 | /// \param z third operand |
| 1748 | /// \return \a x * \a y + \a z stored in single-precision |
| 1749 | static expr fma(float x, float y, float z) |
| 1750 | { |
| 1751 | #if HALF_ENABLE_CPP11_CMATH && defined(FP_FAST_FMAF) |
| 1752 | return expr(std::fma(x, y, z)); |
| 1753 | #else |
| 1754 | return expr(x * y + z); |
| 1755 | #endif |
| 1756 | } |
| 1757 | |
| 1758 | /// Get NaN. |
| 1759 | /// \return Half-precision quiet NaN |