Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: rob@evrtwa1-ar5-4-65-015-110.evrtwa1.dsl-verizon.net (Robert M. Riches Jr.)
Subject: Re: Q: floatingpoint exceptions
Date: Fri, 06 Dec 2002 05:49:17 GMT	[thread overview]
Message-ID: <slrnav0eir.rlc.rob@evrtwa1-ar5-4-65-015-110.evrtwa1.dsl-verizon.net> (raw)
In-Reply-To: asp5th$ei2$1@pulp.srv.ualberta.ca

On 6 Dec 2002, Michal Jaegermann <michal@gortel.phys.ualberta.ca> wrote:
>Torsten Zirzlaff <zirzlaff@nienor.s.bawue.de> wrote:
>> 
>>  Any idea what is wrong that I receive with several programs a
>> floatingpoint exception? These are not programs written by me, but
>> programs from my distro (Debian 3.0) e.g. glplanet.
>> 
>>  Often those programs are graphics related, but not in every case. On
>> my intel box they behave and run smoothly.
>
>Intel FPU allows you to get away with things like dividing by zero, or
>something pretty close to it.  On Alpha running full speed floating
>point exceptions are inexact and cannot be restarted hence attempts to
>divide by zero are deadly.  You can workaround that by using -mieee flag
>while compiling.  This has a performance hit but unless you are really
>taking care how a floating point arithmetic is peformed this can be the
>only practical option.  Graphics stuff is pretty infamous for playing
>loose with a floating point.
>
>Look in gcc docs for descriptions of '-mieee', '-mieee-with-inexact'
>and '-mieee-conformant' for more details.

In response to a bug report I had filed or commented on, somebody
at Redhat (possibly Mike Harris, but I'm not certain) stated that
_all_ Redhat packages are compiled with -mieee just to avoid
exceptions that shouldn't be fatal.  I think the issue I had
filed was that taking the log() of a large negative number (less
than roughly 610, IIRC) would otherwise produce a denormallized
number, and taking the exp() of that would bomb.

Anyway, using -mieee would seem to put one in pretty good
company.

Robert Riches
rm.riches@verizon.net


  reply	other threads:[~2002-12-06  5:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-05 22:10 Q: floatingpoint exceptions Torsten Zirzlaff
2002-12-06  3:35 ` Michal Jaegermann
2002-12-06  5:49   ` Robert M. Riches Jr. [this message]
2002-12-06 18:36     ` Stéphane Vaxelaire
2002-12-06 18:58       ` Robert M. Riches Jr.
2002-12-06 22:32         ` Falk Hueffner
2002-12-07  1:28           ` Robert M. Riches Jr.
2002-12-07 21:37             ` Måns Rullgård
2002-12-06 11:39 ` Måns Rullgård
2002-12-06 13:26   ` Torsten Zirzlaff
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