Update of /cvsroot/jsbsim/JSBSim/src
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4576/src
Modified Files:
JSBSim.cpp
Log Message:
only detect fp exceptions for devide-by-zero and invalid, skip overflow and underflow
Index: JSBSim.cpp
===================================================================
RCS file: /cvsroot/jsbsim/JSBSim/src/JSBSim.cpp,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -r1.88 -r1.89
*** JSBSim.cpp 20 May 2016 12:34:58 -0000 1.88
--- JSBSim.cpp 20 May 2016 14:14:05 -0000 1.89
***************
*** 289,293 ****
_MCW_EM);
#elif defined(__GNUC__) && !defined(sgi)
! feenableexcept(FE_ALL_EXCEPT & ~FE_INEXACT);
#endif
--- 289,293 ----
_MCW_EM);
#elif defined(__GNUC__) && !defined(sgi)
! feenableexcept(FE_DIVBYZERO | FE_INVALID);
#endif
|