__device__ double log2 ( double  x  ) 

Calculate the base 2 logarithm of the input argument x.

Returns:
  • log2($\pm 0$) returns $-\infty$.
  • log2(1) returns +0.
  • log2(x) returns NaN for x < 0.
  • log2($+\infty$) returns $+\infty$.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA