lkml.org 
[lkml]   [2000]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: time_t size: The year 2038 bug?
>Jesse Pollard <pollard@tomcat.admin.navo.hpc.mil> writes:
>> And even then it is limited to 64 bits on a 64 bit system (unless the
>> compiler is non-standard - ie "long long" type of thing).
>
>long long is in ISO/ANSI C99.

yes it is. but the number of bits is not. On a 32 bit system "long long" is
64 bits. On a 64bit system it is 128. And if you need more bits that
that you are out of luck. "long long" is imprecise, I'd prefer a construct
like "int var: 64". This way I know exactly how many bits are available.
If I need 128 bits for something (or even 4096) then I can define them. Or
is there going to be a "long long long long" for 128 bits, and "long long
long long long long .... long" to reach 4096?
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil
Any opinions expressed are solely my own.

-
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:55    [from the cache]
©2003-2011 Jasper Spaans