[lkml]   [2000]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.4.0-test10-pre6: Use of abs()
On Wed, Nov 01, 2000 at 09:46:19AM -0500, wrote:
> What versions of gcc produce the built-in functions?

2.95 and previous. In 2.96 somewhere we fixed a bug that
automatically prototypes these builtin functions for you;
ie with current code you get an undeclared function warning.

> And does it do so for *all* platforms? (i.e., PPC, Alpha,
> IA64, etc., etc., etc.)

Yes. The thing about abs, though, is that it's "int abs(int)"
which does naughty things with longs on 64-bit targets. You're
much better off writing (x < 0 ? -x : x) directly.

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

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