lkml.org 
[lkml]   [2003]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] per-cpu support inside modules (minimal)
Date
In message <20030522031538.2cd124b8.akpm@digeo.com> you write:
> > +static inline unsigned int abs(int val)
> > +{
> > + if (val < 0)
> > + return -val;
> > + return val;
> > +}
>
> Several architectures define their own abs() in asm/system.h which
> return signed int.

Hmm, it's actually declated that way in linux/kernel.h, too:

extern int abs(int);

But AFAICT it's never actually defined.

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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 13:35    [W:3.678 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site