3.154. __nv_fma_rz

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

Compute \(x \times y + z\) as a single operation in round-towards-zero mode.

Computes the value of \(x \times y + z\) as a single ternary operation, rounding the result once in round-towards-zero 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_rz( \(\pm \infty\) , \(\pm 0\) , z) returns NaN.

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

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

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