The function seems to work for all inputs between -128 and 128. There may be some unexpected behavior around the interval of [0, 1], but I'm not sure what's going on there.

