diff options
Diffstat (limited to 'kerncompat.h')
-rw-r--r-- | kerncompat.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/kerncompat.h b/kerncompat.h index 0f207b7f..ee65aa72 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -241,26 +241,6 @@ static inline long IS_ERR(const void *ptr) } /* - * max/min macro - */ -#define min(x,y) ({ \ - typeof(x) _x = (x); \ - typeof(y) _y = (y); \ - (void) (&_x == &_y); \ - _x < _y ? _x : _y; }) - -#define max(x,y) ({ \ - typeof(x) _x = (x); \ - typeof(y) _y = (y); \ - (void) (&_x == &_y); \ - _x > _y ? _x : _y; }) - -#define min_t(type,x,y) \ - ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) -#define max_t(type,x,y) \ - ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; }) - -/* * This looks more complex than it should be. But we need to * get the type for the ~ right in round_down (it needs to be * as wide as the result!), and we want to evaluate the macro |