MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / fma

Method fma

extern/half/include/half.hpp:1364–1371  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

exprClass · 0.85
fmaFunction · 0.85

Tested by

no test coverage detected