mesa: move IS_NEGATIVE() and DIFFERENT_SIGNS() to macros.h