[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64Bit ints



Tom Flynn wrote:

>>>yeah, I know SGIs use long long for 64bit int, but DEC uses long and
>>doesn't >accept long longs (unless there was a flag somewhere we missed).
>>
>>Hmmm, do you know how to detect that? Is there a better way than
>>fiddling around with many AC_CHECK_SIZEOF() tests?
>
>#ifdef __sgi
>
>long long
>
>#else /* dec */
>
>long
>
>#endif 
>
>:-)  That's what we got in the code right now :-)  If you find a better way,
>lemme know :-)

Hmmm, I thought of using AC_CHECK_SIZEOF (long) etc autoconf macros and
doing some

#if SIZEOF_LONG == 8
typedef long    pp64;
elif SIZEOF_LONG_LONG == 8
typedef long long pp64;
elif ...
...
#endif

checking. That's the extra-safe way, but it's also quite cumbersome IMHO.

Cu
	Christian
--

Troi, report to my room. Clothing optional