summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2008-10-30 17:35:30 -0500
committerWolfgang Denk <wd@denx.de>2008-11-02 16:23:46 +0100
commit20d04774f4ef3f6e38974636e0e36ae0f0b5501f (patch)
tree15562cc70bebb87b130ba1ef5218df84f4297c1d /include/common.h
parent298e476c66fd88d0bc4f0371118652d2b5de4e8a (diff)
downloadbootable_bootloader_goldelico_gta04-20d04774f4ef3f6e38974636e0e36ae0f0b5501f.zip
bootable_bootloader_goldelico_gta04-20d04774f4ef3f6e38974636e0e36ae0f0b5501f.tar.gz
bootable_bootloader_goldelico_gta04-20d04774f4ef3f6e38974636e0e36ae0f0b5501f.tar.bz2
Consolidate MAX/MIN definitions
There were several, now there is one (two if you count the lower-case versions). Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index b8a654a..df64bf0 100644
--- a/include/common.h
+++ b/include/common.h
@@ -177,6 +177,9 @@ typedef void (interrupt_handler_t)(void *);
({ typeof (X) __x = (X), __y = (Y); \
(__x > __y) ? __x : __y; })
+#define MIN(x, y) min(x, y)
+#define MAX(x, y) max(x, y)
+
/**
* container_of - cast a member of a structure out to the containing structure