Skip to content

Commit

Permalink
thread-pool: Fix default rounding mode
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 authored and Nekotekina committed Mar 30, 2021
1 parent 1e71deb commit 5a3c218
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Utilities/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "Utilities/JIT.h"
#include <thread>
#include <sstream>
#include <cfenv>

#ifdef _WIN32
#include <Windows.h>
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit 5a3c218

Please sign in to comment.