From e5fe8dbc99922e2072b1f1da5769da4059ba4605 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sat, 12 Dec 2009 17:10:38 +0200 Subject: [PATCH] min and max macros --- common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.h b/common.h index 92abea41..e7b02466 100644 --- a/common.h +++ b/common.h @@ -43,4 +43,7 @@ #include "log.h" /* log macros */ #include "assert.h" /* assert macros */ +#define ladish_max(a, b) ((a) > (b) ? (a) : (b)) +#define ladish_min(a, b) ((a) < (b) ? (a) : (b)) + #endif /* #ifndef COMMON_H__82C9504A_ACD2_435D_9743_781943473E6A__INCLUDED */