3.162. __nv_fmaf_ru
-
float @__nv_fmaf_ru(float %x, float %y, float %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, Single-Precision Floating-Point Functions section.
- Returns
Returns the rounded value of \(x \times y + z\) as a single operation.
__nv_fmaf_ru( \(\pm \infty\) , \(\pm 0\) ,
z) returns NaN.__nv_fmaf_ru( \(\pm 0\) , \(\pm \infty\) ,
z) returns NaN.__nv_fmaf_ru(
x,y, \(-\infty\) ) returns NaN if \(x \times y\) is an exact \(+\infty\).__nv_fmaf_ru(
x,y, \(+\infty\) ) returns NaN if \(x \times y\) is an exact \(-\infty\).