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