Commit 633e2198 authored by Peter Xu's avatar Peter Xu Committed by Paolo Bonzini
Browse files

libcflat: moving MIN/MAX here



That's something can be used outside alloc.c.
Reviewed-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 16c0b05f
......@@ -7,9 +7,6 @@
#include "asm/spinlock.h"
#include "asm/io.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define PHYS_ALLOC_NR_REGIONS 256
struct phys_alloc_region {
......
......@@ -40,6 +40,9 @@
#define SZ_2M (1 << 21)
#define SZ_1G (1 << 30)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
typedef uint8_t u8;
typedef int8_t s8;
typedef uint16_t u16;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment