log2 — Binary logarithm (base-2)
fix32 log2(fix32 num);
Computes the base 2 logarithm of num.
The binary logarithm of num.
init { printf("%.6f", log2(1024.0)); // 10.000000 printf("%.6f", log2(0.125)); // -3.000000 }