macros: add CMP(a, b) macro.
Macro returns -1, 0, 1 depending on whether a < b, a == b or a > b. It's safe to use on unsigned types. Add tests to confirm corner cases are properly covered.
Loading
Please register or sign in to comment
Macro returns -1, 0, 1 depending on whether a < b, a == b or a > b. It's safe to use on unsigned types. Add tests to confirm corner cases are properly covered.