3.238. __nv_log2f
-
float @__nv_log2f(float %x)
Calculate the base 2 logarithm of the input argument.
Calculate the base 2 logarithm 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_log2f( \(\pm 0\) ) returns \(-\infty\).
__nv_log2f(1) returns +0.
__nv_log2f(
x) returns NaN forx< 0.__nv_log2f( \(+\infty\) ) returns \(+\infty\).