thread-pool: Fix default rounding mode

This commit is contained in:
Eladash
2021-03-29 23:05:24 +03:00
committed by Ivan
parent 1e71deb0db
commit 5a3c218239
+3
View File
@@ -10,6 +10,7 @@
#include "Utilities/JIT.h"
#include <thread>
#include <sstream>
#include <cfenv>
#ifdef _WIN32
#include <Windows.h>
@@ -2082,6 +2083,8 @@ thread_base::native_entry thread_base::finalize(u64 _self) noexcept
thread_ctrl::set_thread_affinity_mask(0);
std::fesetround(FE_TONEAREST);
static constexpr u64 s_stop_bit = 0x8000'0000'0000'0000ull;
static atomic_t<u64> s_pool_ctr = []