Jeff Garzik wrote:
> > It would be better to fix MIN in that case, so no others slip through:
> > #define MIN(x, y) ({typeof x x_ = x; typeof y y_ = y; x_ < y_ ? x_ : y_})
>
> If you are going to use a gcc statement expression which uses 'typeof',
> you might as well make it a static inline function.
The macro may generate better code.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:12 EST