mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 12:01:31 +00:00
common.h: remove MIN, MAX, MIN3, MAX3 macros
Now MIN, MAX, MIN3, MAX are not used. Going forward, use min, max, min3, max3. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
c79cba37b3
commit
d660b409dc
1 changed files with 0 additions and 6 deletions
|
@ -181,9 +181,6 @@ typedef void (interrupt_handler_t)(void *);
|
||||||
typeof(Y) __y = (Y); \
|
typeof(Y) __y = (Y); \
|
||||||
(__x > __y) ? __x : __y; })
|
(__x > __y) ? __x : __y; })
|
||||||
|
|
||||||
#define MIN(x, y) min(x, y)
|
|
||||||
#define MAX(x, y) max(x, y)
|
|
||||||
|
|
||||||
#define min3(X, Y, Z) \
|
#define min3(X, Y, Z) \
|
||||||
({ typeof(X) __x = (X); \
|
({ typeof(X) __x = (X); \
|
||||||
typeof(Y) __y = (Y); \
|
typeof(Y) __y = (Y); \
|
||||||
|
@ -198,9 +195,6 @@ typedef void (interrupt_handler_t)(void *);
|
||||||
__x > __y ? (__x > __z ? __x : __z) : \
|
__x > __y ? (__x > __z ? __x : __z) : \
|
||||||
(__y > __z ? __y : __z); })
|
(__y > __z ? __y : __z); })
|
||||||
|
|
||||||
#define MIN3(x, y, z) min3(x, y, z)
|
|
||||||
#define MAX3(x, y, z) max3(x, y, z)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return the absolute value of a number.
|
* Return the absolute value of a number.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue