Skip to content
Snippets Groups Projects
Commit 50a3e08c authored by Mark OLESEN's avatar Mark OLESEN Committed by Kutalmış Berçin
Browse files

DEFEATURE: remove old IRIX code for floating-point-exceptions

parent 2299418b
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,6 @@ License ...@@ -41,8 +41,6 @@ License
#endif #endif
#include <fenv.h> #include <fenv.h>
#include <malloc.h> #include <malloc.h>
#elif defined(sgiN32) || defined(sgiN32Gcc)
#include <sigfpe.h>
#endif #endif
#ifdef darwin #ifdef darwin
...@@ -201,33 +199,9 @@ void Foam::sigFpe::set(bool verbose) ...@@ -201,33 +199,9 @@ void Foam::sigFpe::set(bool verbose)
setHandler("SIGFPE", SIGFPE, sigHandler); setHandler("SIGFPE", SIGFPE, sigHandler);
sigActive_ = true;
#elif defined(sgiN32) || defined(sgiN32Gcc)
sigfpe_[_DIVZERO].abort=1;
sigfpe_[_OVERFL].abort=1;
sigfpe_[_INVALID].abort=1;
sigfpe_[_DIVZERO].trace=1;
sigfpe_[_OVERFL].trace=1;
sigfpe_[_INVALID].trace=1;
handle_sigfpes
(
_ON,
_EN_DIVZERO
| _EN_INVALID
| _EN_OVERFL,
0,
_ABORT_ON_ERROR,
nullptr
);
sigActive_ = true; sigActive_ = true;
#endif #endif
if (verbose) if (verbose)
{ {
Info<< "trapFpe: Floating point exception trapping "; Info<< "trapFpe: Floating point exception trapping ";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment