MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / getFPExcept

Function getFPExcept

Src/Base/AMReX.cpp:1040–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040FPExcept getFPExcept ()
1041{
1042 auto r = FPExcept::none;
1043#if defined(__linux__) && defined(__GLIBC__)
1044 auto excepts = fegetexcept();
1045 if (excepts & FE_INVALID ) { r = r | FPExcept::invalid ; }
1046 if (excepts & FE_DIVBYZERO) { r = r | FPExcept::zero ; }
1047 if (excepts & FE_OVERFLOW ) { r = r | FPExcept::overflow; }
1048#endif
1049 return r;
1050}
1051
1052FPExcept setFPExcept (FPExcept excepts)
1053{

Callers 3

setFPExceptFunction · 0.85
disableFPExceptFunction · 0.85
enableFPExceptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected