Analogously to MAX(), add a macro that pics the smallest of two inputs. Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- hypervisor/include/jailhouse/utils.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/hypervisor/include/jailhouse/utils.h b/hypervisor/include/jailhouse/utils.h index 1599cff..89a3506 100644 --- a/hypervisor/include/jailhouse/utils.h +++ b/hypervisor/include/jailhouse/utils.h @@ -25,3 +25,4 @@ ((0xffffffffffffffffULL >> (64 - ((last) + 1 - (first)))) << (first)) #define MAX(a, b) ((a) >= (b) ? (a) : (b)) +#define MIN(a, b) ((a) <= (b) ? (a) : (b)) -- 2.1.4 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.