pub unsafe extern "C" fn log2(x: f64) -> f64Expand description
Calculate the base 2 logarithm of the input argument x.
ยง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.