OGS
DisableFPE Class Reference

Detailed Description

Definition at line 14 of file DisableFPE.h.

#include <DisableFPE.h>

Public Member Functions

 DisableFPE ()
 
 ~DisableFPE ()
 

Private Attributes

fenv_t fe_env
 

Constructor & Destructor Documentation

◆ DisableFPE()

DisableFPE::DisableFPE ( )
inline

Definition at line 17 of file DisableFPE.h.

18 {
19 fegetenv(&fe_env); // Store floating-point exception handling.
20 fesetenv(FE_DFL_ENV); // Set default environment effectively disabling
21 // exceptions.
22 }
fenv_t fe_env
Definition DisableFPE.h:30

References fe_env.

◆ ~DisableFPE()

DisableFPE::~DisableFPE ( )
inline

Definition at line 24 of file DisableFPE.h.

25 {
26 fesetenv(&fe_env); // Restore floating-point exception handling.
27 }

References fe_env.

Member Data Documentation

◆ fe_env

fenv_t DisableFPE::fe_env
private

Definition at line 30 of file DisableFPE.h.

Referenced by DisableFPE(), and ~DisableFPE().


The documentation for this class was generated from the following file: