From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12369 invoked from network); 30 Jul 1999 14:57:39 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 30 Jul 1999 14:57:39 -0000 Received: from voicenet.com (mail12.voicenet.com [207.103.0.6]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id KAA28514 for ; Fri, 30 Jul 1999 10:57:38 -0400 Received: (qmail 26915 invoked from network); 30 Jul 1999 14:57:36 -0000 Received: from dialpool1041-pri.voicenet.com (HELO voicenet.com) (209.71.88.108) by mail12.voicenet.com with SMTP; 30 Jul 1999 14:57:36 -0000 Sender: gat@mail.redhat.com Message-ID: <37A1B8DD.F677040E@voicenet.com> Date: Fri, 30 Jul 1999 10:38:22 -0400 From: Uncle George Organization: Big Endian X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: axp-list@redhat.com CC: hjstein@bfr.co.il Subject: Re: Float Pt Precision References: <37A055F8.F9CEC671@voicenet.com> <19990729164241.B21308@twiddle.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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. >