The function seems to work for all inputs between -128 and 128. However, there is an interval around x = 0 where the function displays unexpected behavior. Specifically, for inputs x = -128, x = 0, and x = 128, the function returns the values -128, 0, and 128, respectively.

