3.277. __nv_remquo
-
double @__nv_remquo(double %x, double %y, i32* %c)
Compute double-precision floating-point remainder and part of quotient.
Compute a double-precision floating-point remainder in the same way as the ::remainder() function. Argument
quoreturns part of quotient upon division ofxbyy. Valuequohas the same sign as \( \frac{x}{y} \) and may not be the exact quotient but agrees with the exact quotient in the low order 3 bits.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
- Returns
Returns the remainder.
__nv_remquo(
x, 0,quo) returns NaN.__nv_remquo( \(\pm \infty\) ,
y,quo) returns NaN.__nv_remquo(
x, \(\pm \infty\) ,quo) returnsx.