From cf3527e2f4f1f4009fa332e6284b8904c24d0d43 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 9 Jul 1998 19:36:05 +0000 Subject: [PATCH] Adding MIN()/MAX() macros --- lib/birdlib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/birdlib.h b/lib/birdlib.h index 9696f9dc..3d235c9e 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -15,6 +15,10 @@ #define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i))) #define ALIGN(s, a) (((s)+a-1)&~(a-1)) +/* Utility-Macros */ +#define MIN(a,b) ((ab)?a:b) + /* Functions which don't return */ #define NORET __attribute__((noreturn))