3.120. __nv_fdim
-
double @__nv_fdim(double %x, double %y)
Compute the positive difference between
xandy.Compute the positive difference between
xandy. The positive difference isx-ywhenx>yand +0 otherwise.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.
- Returns
Returns the positive difference between
xandy.__nv_fdim(
x,y) returnsx-yifx>y.__nv_fdim(
x,y) returns +0 ifx\(\leq\)y.