• 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: int128_t
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: int128_t


  • Subject: Re: int128_t
  • From: Paul Russell <email@hidden>
  • Date: Fri, 17 Oct 2008 10:21:48 +0100

Just out of curiosity, why do you think you need more than 64 bits for a financial application ?

For example, take a large amount of money, say the US national debt, around 10 trillion dollars. Convert it to a currency with a high exchange rate, e.g. Japanese Yen at around 100 yen to the dollar, and just for the hell of it multiply by another 100 (to allow for inflation over the next year ;-)). That's 10^17, which needs log(17) / log(2) = 57 bits. Why do you think you need even more bits more than this ?

Paul

On 16 Oct 2008, at 13:45, email@hidden wrote:

Maybe you were thinking of 128 bit long doubles ?

we already use the 128 long doubles, the thing is we do a lot of accounting like
calculations and 'almost accurate' is not an option :-) i heard one can even
be sent to jail for that in the USA


64 bit integers work great for that matter, but we like to step up to more bits

the other tip i got was that we should look for

Sint128

but this type is unknow to gcc4.2 also



Paul

On 15 Oct 2008, at 13:02, email@hidden wrote:

hi,

i setup a configuration in my project that uses gcc4.2 instead of gcc4.0
because i read that from gcc4.1 the compiler would support 128-bit integer
types


however:

	typedef int64_t pxlong;
//	typedef int128_t pxlong;


compiles ok, while

//	typedef int64_t pxlong;
	typedef int128_t pxlong;

gives an error saying 'int128_t' is not a type

what am i doing wrong here?

any help is very much appreciated

---
perry

_______________________________________________ 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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@sonic.net


This email sent to email@hidden


_______________________________________________ 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: int128_t
      • From: "Mark Wagner" <email@hidden>
References: 
 >int128_t (From: email@hidden)
 >Re: int128_t (From: Paul Russell <email@hidden>)
 >Re: int128_t (From: email@hidden)

  • Prev by Date: Re: FileMerge can't merge xibs?
  • Next by Date: compiling assembler in Xcode
  • Previous by thread: Re: int128_t
  • Next by thread: Re: int128_t
  • Index(es):
    • Date
    • Thread