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