• 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: mathlib pow gives bad result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mathlib pow gives bad result


  • Subject: Re: mathlib pow gives bad result
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Fri, 19 May 2006 14:57:36 +0200

If Itanium2 does x86 floating point arithmetic, keep in mind that x86
operates on 80 bit floats internally, while ppc (afaik) does "only" work
with the given 64 bit.

I believe that this depends on the mathlib implementation. Some mathlibs such as fdlibm calculate results bit by bit and use integers that they obtain by extracting mantissa from double and extending it to 64 bits thus they obtain internal 80bit precision anyway.


So this probably is an architecture issue. You could try and compare
this to linux/ppc results (via a ppc/linux live-cd perhaps). If
precision is a general problem for you, you might try some software
implemented multi-precision floating point numbers, e. g. gmp [1].

By the way GMP 4.2.1 does not compile on itanium2 hp-ux I have :)

Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >mathlib pow gives bad result (From: "email@hidden" <email@hidden>)
 >Re: mathlib pow gives bad result (From: Markus Weissmann <email@hidden>)

  • Prev by Date: Re: MacCentral Post
  • Next by Date: Re: StartupItems
  • Previous by thread: Re: mathlib pow gives bad result
  • Next by thread: Re: mathlib pow gives bad result
  • Index(es):
    • Date
    • Thread