lkml.org 
[lkml]   [2007]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] fix abs() macro to work with types wider than int
> > > I think it's like it is just to be consistent with abs() in C,
> > > which also contains labs() and llabs().
> > >
> > We actually had labs() before (few months ago), but since it was not
> > used, and if it would it seemed better to just fix abs(), it was
> > removed. So I think this is the appropriate way to go.
>
> Sounds like when someone actually needs labs() or llabs()
> they can submit a patch for however they would like to use it.

However they would like to use *abs()? What different ways are possible to
take the arithmetic absolute value? I see record of many cases where
dozens of authors have macros that then get collapsed to include files. So
why not avoid that annoyance this time and -start- with it in the include
files?

Can there even be any reason beyond unnecessary pedantics to have
[l[l]]abs?
-
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: 2007-04-25 17:29    [W:0.058 / U:1.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site