• 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: long double data type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long double data type


  • Subject: Re: long double data type
  • From: Richard Dobson <email@hidden>
  • Date: Tue, 15 Jun 2010 23:05:40 +0100

On 15/06/2010 22:42, Luigi Castelli wrote:
The fact that long double is 80 bits is an implementation detail,
not a predefined type.  On PowerPC, long double = double unless you
force it to be bigger in which case it is emulated in software with
2 doubles (simplistic statement!).

Exactly. On my system, the size of a long double is 128 bits (16 bytes), not 80 bits. Why would it not be IEEE compliant?


there is a 128bit IEEE standard, summarised here: http://en.wikipedia.org/wiki/Quadruple_precision_floating-point_format

Note that long double = 128bits is not universally supported yet, so use of it is not as portable as you might wish. Also note it tends to depend on software emulation, so if you ~can~ arrange your dsp to manage with native 64bit types, it will clearly be advantageous to do so. There will remain some curiosity on this list as to what you are doing for which 64bits are insufficient.

The only explicit use of 80 bit floats I am aware of is, curiously enough, in the AIFF spec where it is used, more than a little extravagantly, for the sample rate.

Richard Dobson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: long double data type
      • From: "Paul Sanders" <email@hidden>
References: 
 >Re: long double data type (From: Luigi Castelli <email@hidden>)

  • Prev by Date: Re: Question on ExtAudioFileRead and AudioBuffer for iPhone SDK
  • Next by Date: Re: long double data type
  • Previous by thread: Re: long double data type
  • Next by thread: Re: long double data type
  • Index(es):
    • Date
    • Thread