Re: 64 bit
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) |