Yesterday, nobody contributed anything. :-(
The official answer is:
-log2(abs(ln(floor(floor(x)) - 1)))