__device__ float __log2f ( float  x  ) 

Calculate the fast approximate base 2 logarithm of the input argument x.

Returns:
Returns an approximation to $\log_2(x)$.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-4.

Input and output in the denormal range is flushed to sign preserving 0.0.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA