• 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: Jeffrey Oleander <email@hidden>
  • Date: Thu, 13 Dec 2007 05:21:10 -0800 (PST)

> email@hidden wrote:
> i need to multiply, divide, add and stuff on large
> (signed) integers i was thinking about using
> 64 bit numbers
> what is the strategy to follow within the Xcode/Darwin
> paradigm on doing 64 bit integer math?

For most things, I prefer to use SInt64 and UInt64.  It
explicit declares your intention, but then you're more
locked in; it won't let you just kind of slide to 32 bit or
128 bit semi-automagically.  (And I see some people had
trouble with them a couple years ago, so search the list
archives and the web.)

This is something Cray had down back in the 1970s...
almost.  A couple field engineers figured out how to tweak
the hardware into doing integer multiplies and divides.
Cray had us converting to floating point for those ops and
then converting back.


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs
 _______________________________________________
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)

  • Prev by Date: Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?
  • Next by Date: Re: Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?
  • Previous by thread: Re: 64 bit
  • Next by thread: Re: 64 bit
  • Index(es):
    • Date
    • Thread