Simplifying one's complement calculation