Changeset 471 for cpp


Ignore:
Timestamp:
02/14/16 03:40:21 (9 years ago)
Author:
Maciej Komosinski
Message:

FP overflow exception non-fatal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_math.cpp

    r375 r471  
    5757void fpExceptEnable()
    5858{
    59 feclearexcept(FE_DIVBYZERO | FE_OVERFLOW);
    60 feenableexcept(FE_DIVBYZERO | FE_OVERFLOW);
     59feclearexcept(FE_DIVBYZERO);
     60feenableexcept(FE_DIVBYZERO);
    6161}
    6262
    6363void fpExceptDisable()
    6464{
    65 fedisableexcept(FE_DIVBYZERO | FE_OVERFLOW);
     65fedisableexcept(FE_DIVBYZERO);
    6666}
    6767
Note: See TracChangeset for help on using the changeset viewer.