New arithmetic and equality macros

Added macros to check whether two values are equal, and for comparing
two values for greater than, greater than or equal, less than, less
than or equal