The domain of the function seems to be -128 <= x <= 128. The interval where the function displays unexpected behavior is around x = 0. The numeric bounds for that interval appear to be -16 <= x <= 16.

