3.239. __nv_logb

double @__nv_logb(double %x)

Calculate the floating point representation of the exponent of the input argument.

Calculate the floating point representation of the exponent of the input argument x.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.

Returns

  • __nv_logb \(\pm 0\) returns \(-\infty\)

  • __nv_logb \(\pm \infty\) returns \(+\infty\)