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>
This commit is contained in:
committed by
Wolfgang Denk
parent
298e476c66
commit
20d04774f4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user