lkml.org 
[lkml]   [2001]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux/macros.h(new) and linux/list.h(mod) ...
Date
From
-> From David Woodhouse <dwmw2@infradead.org> :
>
> huaz@cs.columbia.edu 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.

right, gcc -O2 does produce the same code (but -O does not).

>
> > 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
> :)

Oops, I must be sleeping at that time :-)

> --
> dwmw2
>
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:56    [W:1.005 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site