__device__ double __fma_ru ( double  x,
double  y,
double  z 
)

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

Returns:
Returns the rounded value of $x \times y + z$ as a single operation.
  • fmaf($\pm \infty$, $\pm 0$, z) returns NaN.
  • fmaf($\pm 0$, $\pm \infty$, z) returns NaN.
  • fmaf(x, y, $-\infty$) returns NaN if $x \times y$ is an exact $+\infty$.
  • fmaf(x, y, $+\infty$) returns NaN if $x \times y$ is an exact $-\infty$.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA