Skip to content

Commit

Permalink
#696 Explicitly disable FPU exceptions on Linux
Browse files Browse the repository at this point in the history
o-sdn-o committed Dec 20, 2024
1 parent 95b69d8 commit b57976a
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/netxs/desktopio/intmath.hpp
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@ namespace netxs
using arch = size_t;
using flag = std::atomic<bool>;

static const auto feclearexcept = []{ return std::feclearexcept(FE_ALL_EXCEPT); }();
constexpr size_t operator "" _sz (unsigned long long i) { return static_cast<size_t>(i); }
static constexpr auto bytemin = std::numeric_limits<byte>::min();
static constexpr auto bytemax = std::numeric_limits<byte>::max();
1 change: 1 addition & 0 deletions src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
@@ -1261,6 +1261,7 @@ namespace netxs::os
auto platform = "macOS"s;
#elif defined(__linux__)
auto platform = "Linux"s;
auto fedisableexcept = ::fedisableexcept(FE_ALL_EXCEPT);
#elif defined(__BSD__)
auto platform = "BSD"s;
#else

0 comments on commit b57976a

Please sign in to comment.