(v>>24) | ((v>>8)&0xFF00) | (v<<24) | ((v<<8)&0xFF0000); } )
#define BE16_TO_LE16(val) ({typeof (val) v= (val); (v>>8) | (v<<8); } )
/*
- * Define a protected, right typed, no side effects macro for min
+ * Define a protected, right typed, no side effects macro for min and max
*/
#define min(x, y) ({typeof (x) x_ = (x); typeof (y) y_ = (y); \
x_ < y_ ? x_ : y_;})
+#define max(x, y) ({typeof (x) x_ = (x); typeof (y) y_ = (y); \
+ x_ > y_ ? x_ : y_;})
/*
* debugging print definition
*/