24 FPControl::FPControl()
38 FPControl::~FPControl()
41 feclearexcept (m_masked);
50 void FPControl::holdExceptions()
54 m_masked |= FE_ALL_EXCEPT;
62 void FPControl::enable ([[maybe_unused]] Exc exc)
64 #if HAVE_FEENABLEEXCEPT
65 int mask = excToMask (exc);
66 feenableexcept (
mask);
76 void FPControl::disable ([[maybe_unused]] Exc exc)
78 #if HAVE_FEENABLEEXCEPT
79 int mask = excToMask (exc);
80 fedisableexcept (
mask);
90 int FPControl::excToMask (Exc exc)