Re: 64 bit
Re: 64 bit
- Subject: Re: 64 bit
- From: Peter O'Gorman <email@hidden>
- Date: Thu, 13 Dec 2007 11:33:45 -0600
Sean McBride wrote:
> On 12/13/07 12:33 PM, Alastair Houghton said:
>
>> Also, if you know you want 64-bit numbers, I'd be inclined to use
>> int64_t and/or
>> uint64_t (you'll have to #include <stdint.h> first) rather than long
>> long. Or
>> maybe int_fast64_t since your goal here is performance and you only
>> care about
>> having *at least* 64 bits.
>
> Note however that stdint.h is from C99, and is not part of C++. This
> distinction may be important for portability reasons.
>
For example, stdint.h on sgi irix6.5 has:
#ifndef __c99
#error This header file is to be used only for c99 mode compilations
#else
Of course the c++ compiler there does not define __c99.
There are similar problems on Tru64 unix, and of course older systems do
not even have a stdint.h.
inttypes.h is more common on older systems and will still give int64_t
etc., and should work with c++.
Of course this all assumes that portability is indeed a goal :-)
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >64 bit (From: email@hidden) |
| >Re: 64 bit (From: Nick Zitzmann <email@hidden>) |
| >Re: 64 bit (From: Perry Winkel <email@hidden>) |
| >Re: 64 bit (From: Alastair Houghton <email@hidden>) |
| >Re: 64 bit (From: "Sean McBride" <email@hidden>) |