Add macro M_GREATER_THAN_P & M_LESS_OR_EQUAL_P (src, tests, doc)

This commit is contained in:
Patrick Pelissier committed 2021-02-07 09:53:13 +01:00
1 parent e84bc9fc0d
commit 0515cfd068
3 files changed
+32

No files matched your search

+8
View File
@@ -1745,6 +1745,14 @@ M_BEGIN_PROTECTED_CODE
a and b shall be in [0..M_MAX_NB_ARGUMENT] */
#define M_GREATER_OR_EQUAL_P(a, b) M_INV(M_LESS_THAN_P(a, b))
/* Return 1 if a <= b, 0 otherwise
a and b shall be in [0..M_MAX_NB_ARGUMENT] */
#define M_LESS_OR_EQUAL_P(a, b) M_GREATER_OR_EQUAL_P(b, a)
/* Return 1 if a > b, 0 otherwise
a and b shall be in [0..M_MAX_NB_ARGUMENT] */
#define M_GREATER_THAN_P(a, b) M_LESS_THAN_P(b,a)
/* Revert the list given as parameter
Example: M_REVERSE(a,b,c) --> c,b,a */
/* Generated by: