Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: Floating point exceptions
@ 1999-09-23  4:00 hinsen
  1999-09-23  4:00 ` Eberhard Burr
  0 siblings, 1 reply; 4+ messages in thread
From: hinsen @ 1999-09-23  4:00 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Floating point exceptions
@ 1999-09-23  4:00 Konrad Hinsen
  1999-09-23  4:00 ` Joerg Schmalzl
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Hinsen @ 1999-09-23  4:00 UTC (permalink / raw)


I am trying to install some numerical code on an Alpha system running
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?
-- 
-------------------------------------------------------------------------------
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
-------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-09-23  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-23  4:00 Floating point exceptions hinsen
1999-09-23  4:00 ` 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

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