allow setting up arithmetic exception handling.

This commit is contained in:
Vítor Santos Costa
2014-10-19 11:27:53 +01:00
parent 13421d0cd7
commit 47d1bd5ecc
8 changed files with 50 additions and 5 deletions

View File

@@ -1422,7 +1422,7 @@ Yap_MathException__( USES_REGS1 )
int raised;
#if HAVE_FETESTEXCEPT
#pragma STDC FENV_ACCESS ON
// #pragma STDC FENV_ACCESS ON
if ((raised = fetestexcept( FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW)) ) {
feclearexcept(FE_ALL_EXCEPT);