]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Adding MIN()/MAX() macros
authorPavel Machek <pavel@ucw.cz>
Thu, 9 Jul 1998 19:36:05 +0000 (19:36 +0000)
committerPavel Machek <pavel@ucw.cz>
Thu, 9 Jul 1998 19:36:05 +0000 (19:36 +0000)
lib/birdlib.h

index 9696f9dc5e104d4d00c29cb07eaff690fd580bb0..3d235c9e5770a86506b4afce913561b145db9595 100644 (file)
 #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) ((a<b)?a:b)
+#define MAX(a,b) ((a>b)?a:b)
+
 /* Functions which don't return */
 
 #define NORET __attribute__((noreturn))