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