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