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
| 1362 | /// \param z third operand |
| 1363 | /// \return \a x * \a y + \a z stored in single-precision |
| 1364 | static expr fma(float x, float y, float z) |
| 1365 | { |
| 1366 | #if HALF_ENABLE_CPP11_CMATH && defined(FP_FAST_FMAF) |
| 1367 | return expr(std::fma(x, y, z)); |
| 1368 | #else |
| 1369 | return expr(x*y+z); |
| 1370 | #endif |
| 1371 | } |
| 1372 | |
| 1373 | /// Get NaN. |
| 1374 | /// \return Half-precision quiet NaN |