Calculates base 2 logarithm.
This function is some 2.5 times faster on x86, and over 12 times faster on fpu-less arm, than using libc log.
x |
value to calculate base 2 logarithm from |
base 2 logarithm. |