• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: 64 bit
      • From: Alastair Houghton <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>)

  • Prev by Date: Re: Loading function from a bundle without loading all globals.
  • Next by Date: Re: 64 bit
  • Previous by thread: Re: 64 bit
  • Next by thread: Re: 64 bit
  • Index(es):
    • Date
    • Thread