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