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