Skip to content
Snippets Groups Projects
Commit 8d827f99 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

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

parent ee4300b0
Branches
Tags
No related merge requests found
......@@ -41,8 +41,6 @@ License
#endif
#include <fenv.h>
#include <malloc.h>
#elif defined(sgiN32) || defined(sgiN32Gcc)
#include <sigfpe.h>
#endif
#ifdef darwin
......@@ -201,33 +199,9 @@ void Foam::sigFpe::set(bool verbose)
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;
#endif
if (verbose)
{
Info<< "trapFpe: Floating point exception trapping ";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment