The function appears to be a simple scaling function that takes a numerical input x and returns a value that is roughly x times a constant factor (either 128 or -128).

