sign extend all values before performing any numeric operation