diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 6f1882dbaeb5..bafb80e8cae2 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -112,6 +112,11 @@ static inline void console_verbose(void) ((unsigned char *)&addr)[1], \ ((unsigned char *)&addr)[0] +#define min(type,x,y) \ + ({ type __x = (x), __y = (y); __x < __y ? __x: __y; }) +#define max(type,x,y) \ + ({ type __x = (x), __y = (y); __x > __y ? __x: __y; }) + #endif /* __KERNEL__ */ #define SI_LOAD_SHIFT 16 |
