6 #include <utl/Reader.h>
7 #include <fwk/CentralConfig.h>
8 #include <utl/ErrorLogger.h>
9 #include <utl/String.h>
11 #include <evt/Event.h>
24 WARNING(
"floating-point exceptions will not be enabled on this architecture.");
27 CentralConfig::GetInstance()->
GetTopBranch(
"FloatingPointException");
28 const vector<unsigned int> bits = topB.
GetChild(
"ExceptionBits").
Get<vector<unsigned int>>();
30 info <<
"enabling floating point exception bits:";
32 for (
const auto bit : bits) {
33 fExceptions |= (1 << bit);
36 info <<
" (" <<
AsBinary(fExceptions, 8) <<
" = " << fExceptions <<
')';
51 feenableexcept(fExceptions);
54 fedisableexcept(fExceptions);
Branch GetTopBranch() const
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Class representing a document branch.
std::string AsBinary(const T &number, const int maxBits=8 *sizeof(T), const char separator= ' ', const int stride=4)
converts integer-type numbers into a string of binary representation
#define WARNING(message)
Macro for logging warning messages.
ResultFlag
Flag returned by module methods to the RunController.