Defines 1's and 2's complement functions.