#include "Util/fpe.H"
#include <fenv.h>
Go to the source code of this file.
Functions | |
void | fpExceptionsOn () |
Turn floating-point exceptions on. | |
void | fpExceptionsOff () |
Turn floating-point exceptions off. | |
void | fpExceptionsLock () |
Lock floating-point exceptions in their current state. | |
void | fpExceptionsUnlock () |
Unlock floating-point exceptions. | |
bool | fpIsEnabled () |
Check whether floating-point exceptions are on. | |
bool | fpIsLocked () |
Check whether floating-point exceptions are locked in their current state. |
floating-point exceptions
Definition in file fpe.C.
void fpExceptionsLock | ( | ) |
Lock floating-point exceptions in their current state.
That is, if FPEs are on now, they will stay locked on even if someone calls fpExceptionsOff(); likewise, if FPEs are off now, they will stay locked off even if someone calls fpExceptionsOn().
Definition at line 77 of file fpe.C.
Referenced by MexModelManager::MexModelManager().
void fpExceptionsOff | ( | ) |
Turn floating-point exceptions off.
Definition at line 64 of file fpe.C.
Referenced by MexModelManager::MexModelManager(), and ModelManager::paramChanged().
void fpExceptionsOn | ( | ) |
Turn floating-point exceptions on.
Definition at line 51 of file fpe.C.
Referenced by ModelManager::paramChanged().
void fpExceptionsUnlock | ( | ) |
Unlock floating-point exceptions.
This does not turn FPEs on or off, but does make it possible for the state to be changed again via fpExceptionsOn() or fpExceptionsOff().
Definition at line 83 of file fpe.C.
Referenced by MexModelManager::MexModelManager().
bool fpIsEnabled | ( | ) |