From linux-kernel Sat Aug 07 20:10:42 1999 From: "Albert D. Cahalan" Date: Sat, 07 Aug 1999 20:10:42 +0000 To: linux-kernel Subject: Re: [NEW PATCH] timers, sysctl, signal (only to get POSIX timers X-MARC-Message: https://marc.info/?l=linux-kernel&m=93405653818489 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/