lkml.org 
[lkml]   [1999]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [NEW PATCH] timers, sysctl, signal (only to get POSIX timers
Date
Riley writes:
> Hi Robert.

>> Point taken, are you sure that all platforms can do 64 bit
>> calculations? (or does the compiler support it?)
>
> My understanding is that all platforms CAN do 64 bit calculation, but
> it's generally frowned upon on 32-bit platforms as it's rather slow.

First of all, one can not avoid wide numbers for this. You can not
use an #ifdef to avoid the problem.

The question then becomes: Use "long long" or not?

All platforms can do 64-bit calculations via "long long", with the
compiler emulating as needed. Older versions of gcc could be slow,
but this problem has been fixed.

Even though I have an old gcc, I'd prefer letting the compiler handle
the job. Using "long long" would make the code more maintainable.
Somebody actually using this new feature will need a new libc anyway,
and I think libc now requires the newer compiler.

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

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