3.240. __nv_logbf

float @__nv_logbf(float %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, Single-Precision Floating-Point Functions section.

Returns

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

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