Replaced gt/lt zero compares with checking msb