From: Michal Jaegermann <michal@gortel.phys.ualberta.ca>
Subject: Re: Q: floatingpoint exceptions
Date: 6 Dec 2002 03:35:13 GMT [thread overview]
Message-ID: <asp5th$ei2$1@pulp.srv.ualberta.ca> (raw)
In-Reply-To: 87isy8yv5n.fsf@new.home-net.stg
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.
Michal
next prev parent reply other threads:[~2002-12-06 3:35 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 [this message]
2002-12-06 5:49 ` Robert M. Riches Jr.
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