3.178. __nv_frexp
-
double @__nv_frexp(double %x, i32* %b)
Extract mantissa and exponent of a floating-point value.
Decompose the floating-point value
xinto a componentmfor the normalized fraction element and another termnfor the exponent. The absolute value ofmwill be greater than or equal to 0.5 and less than 1.0 or it will be equal to 0; \(x = m\cdot 2^n\). The integer exponentnwill be stored in the location to whichnptrpoints.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
- Returns
Returns the fractional component
m.__nv_frexp(0,
nptr) returns 0 for the fractional component and zero for the integer component.__nv_frexp( \(\pm 0\) ,
nptr) returns \(\pm 0\) and stores zero in the location pointed to bynptr.__nv_frexp( \(\pm \infty\) ,
nptr) returns \(\pm \infty\) and stores an unspecified value in the location to whichnptrpoints.__nv_frexp(NaN,
y) returns a NaN and stores an unspecified value in the location to whichnptrpoints.