3.153. __nv_fma_ru

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

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

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

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

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

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