Messages in this thread | | | From | "Albert D. Cahalan" <> | Subject | Re: [NEW PATCH] timers, sysctl, signal (only to get POSIX timers | Date | Sat, 7 Aug 1999 16:10:42 -0400 (EDT) |
| |
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/
| |