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