Calculates the base-2 logarithm of x: log2x
assert(approxEqual(log2(1024.0L), 10));
See Implementation
Calculates the base-2 logarithm of x: log2x