3.121. __nv_fdimf
-
float @__nv_fdimf(float %x, float %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_fdimf(
x,y) returnsx-yifx>y.__nv_fdimf(
x,y) returns +0 ifx\(\leq\)y.