Re: linux/macros.h(new) and linux/list.h(mod) ...

From: David Woodhouse (
Date: Thu Jul 05 2001 - 16:58:53 EST said:
> Doesn't it add more overhead? I think using inline functions are
> much better.

Why should it add overhead? Even the most na´ve compiler ought to generate
the same code, surely? I must admit I haven't looked hard at the output -
it didn't even occur to me that it might produce suboptimal code.

> Yes you have to define it for different types (char, short, int,
> long, signed/unsigned).

Unfortunately, this being C means that you can't call them all by the same
name. If I have to use unsigned_long_max(x,y) I'd rather type it out myself


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:17 EST