From: hinsen@cnrs-orleans.fr
Subject: Re: Floating point exceptions
Date: 1999/09/23 [thread overview]
Message-ID: <7sdiab$bas$1@nnrp1.deja.com> (raw)
Joerg Schmalzl <joergs@earth.uni-muenster.de> writes:
> Konrad Hinsen wrote:
> >
> > RedHat 6.0, and I get lots of crashes. It seems that the math
library
> > generates a floating point exception in many cases (e.g. log(-1.))
> > where I'd rather like to get an error code back to my routines.
> > Is there any way to change this?
> > --
>
> Sure ... install a signal handler:
But then I'd have to do all error handling myself. What I want is the
documented error reporting behaviour of the math library, i.e. an error code
in the global variable errno, because some routines in my code rely on it. In
fact, the current behaviour of the machine violates the ANSI standard,
according to my knowledge. I suppose someone must have noticed this before!
--
-----------------------------------------------------------------------------
-- Konrad Hinsen | E-Mail: hinsen@cnrs-orleans.fr Centre de Biophysique
Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax:
+33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France
| Nederlands/Francais
-----------------------------------------------------------------------------
--
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
next reply other threads:[~1999-09-23 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-23 4:00 hinsen [this message]
1999-09-23 4:00 ` Floating point exceptions Eberhard Burr
-- strict thread matches above, loose matches on Subject: below --
1999-09-23 4:00 Konrad Hinsen
1999-09-23 4:00 ` Joerg Schmalzl
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