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