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
| 1349 | /// \param z third operand |
| 1350 | /// \return \a x * \a y + \a z stored in single-precision |
| 1351 | static expr fma(float x, float y, float z) |
| 1352 | { |
| 1353 | #if HALF_ENABLE_CPP11_CMATH && defined(FP_FAST_FMAF) |
| 1354 | return expr(std::fma(x, y, z)); |
| 1355 | #else |
| 1356 | return expr(x*y+z); |
| 1357 | #endif |
| 1358 | } |
| 1359 | |
| 1360 | /// Get NaN. |
| 1361 | /// \return Half-precision quiet NaN |