From a39a031233ad9b638a5ef6ff11209ca27ef7c762 Mon Sep 17 00:00:00 2001 From: robertmh Date: Sun, 21 Oct 2007 12:58:21 +0000 Subject: [PATCH] 2007-10-21 Robert Millan * include/grub/misc.h (grub_max): New function. --- ChangeLog | 4 ++++ include/grub/misc.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 666bcd6a5..47588a035 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-21 Robert Millan + + * include/grub/misc.h (grub_max): New function. + 2007-10-21 Robert Millan * util/misc.c (grub_util_info): Call fflush() before returning. diff --git a/include/grub/misc.h b/include/grub/misc.h index 22196861b..8bd4baab8 100644 --- a/include/grub/misc.h +++ b/include/grub/misc.h @@ -92,4 +92,13 @@ grub_abs (int x) return (unsigned int) x; } +static inline long +grub_max (long x, long y) +{ + if (x > y) + return x; + else + return y; +} + #endif /* ! GRUB_MISC_HEADER */