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