Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Cc: hjstein@bfr.co.il
Subject: Re: Float Pt Precision
Date: Fri, 30 Jul 1999 10:38:22 -0400	[thread overview]
Message-ID: <37A1B8DD.F677040E@voicenet.com> (raw)
In-Reply-To: m2vhb2e0lt.fsf@blinky.bfr.co.il

I dont see how u can sugg this. the n/m/d/c have to be compiled into each float
instruction.  changing the fpcr does nothing if none of the instructions have a
/d switch.  If libm was compiled with the '\d' for dynamic rounding ( as per
the settings in the fpcr ),  then you may get different results.

What u do have is a mix of rounding - compiled as part of the standard
libraries, and that of the executable.
gat
BTW, I suppose that the floats are all done in 64bit precision ( ie there is no
such thing as 80bit extended precision at all ). Its amazing that none of the
alpha float folks ( people who bought it for the floating point speed) cared
enough to make this a 'I want/need' this precision issue :-\ oh-well



Harvey J. Stein wrote:

> Richard Henderson <rth@twiddle.net> writes:
>
>  > On Thu, Jul 29, 1999 at 09:24:08AM -0400, Uncle George wrote:
>  > > BTW as a side issue, there doesn't seem to be any way to get the
>  > > compiler to do different 'rounding' techniques.  Ie chopped, +infinity,
>  > > -Infinity.
>  >
>  > -mfp-rounding-mode={n,m,c,d}
>  >
>  >      n == round to nearest
>  >      m == round to minus infinity
>  >      c == round to zero
>  >      d == dynamic rounding (mode comes from fpcr)
>
> But doesn't this set the rounding mode at program start?  If so, it
> means that it can be dangerous because libm might require a particular
> rounding mode - switching it could cause libm inaccuracy.
>




  reply	other threads:[~1999-07-30 14:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-29 13:24 Float Pt Precision Uncle George
1999-07-29 14:03 ` Alvin Starr
1999-07-29 14:32   ` Phil Carmody
1999-07-29 15:57     ` Michael J. Donahue
1999-07-29 18:51       ` Harvey J. Stein
1999-07-29 19:47         ` Wes Bauske
1999-07-29 21:05           ` Harvey J. Stein
1999-07-29 21:07         ` Michael J. Donahue
1999-07-29 14:17 ` Phil Carmody
1999-07-29 14:24 ` Christopher C Chimelis
1999-07-29 16:39 ` Wes Bauske
1999-07-29 23:42 ` Richard Henderson
1999-07-30 13:19   ` Harvey J. Stein
1999-07-30 14:38     ` Uncle George [this message]
1999-07-30 14:55   ` Uncle George
1999-07-30 11:18 ` Phil Carmody
1999-07-30 14:52   ` Uncle George
1999-07-30 15:31     ` Phil Carmody
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox