log2

Function log2 

Source
pub unsafe extern "C" fn log2(x: f64) -> f64
Expand description

Calculate the base 2 logarithm of the input argument x.

Nvidia docs

ยงReturns

  • __nv_log2( ) returns .
  • __nv_log2(1) returns +0.
  • __nv_log2(x) returns NaN for x < 0.
  • __nv_log2( ) returns . For accuracy information for this function see the CUDA C Programming Guide, Appendix D.1, Table 7.