3.152. __nv_fma_rn

double @__nv_fma_rn(double %x, double %y, double %z)

Compute \(x \times y + z\) as a single operation in round-to-nearest-even mode.

Computes the value of \(x \times y + z\) as a single ternary operation, rounding the result once in round-to-nearest-even mode.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.

Returns

Returns the rounded value of \(x \times y + z\) as a single operation.

  • __nv_fma_rn( \(\pm \infty\) , \(\pm 0\) , z) returns NaN.

  • __nv_fma_rn( \(\pm 0\) , \(\pm \infty\) , z) returns NaN.

  • __nv_fma_rn(x, y, \(-\infty\) ) returns NaN if \(x \times y\) is an exact \(+\infty\)

  • __nv_fma_rn(x, y, \(+\infty\) ) returns NaN if \(x \times y\) is an exact \(-\infty\)