Added COMPARE and SIGN macros