From 20eafc98ffab4095cc815af9a1c3cc0855b4089c Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 2 Feb 2024 01:00:26 -0500 Subject: [PATCH] No need to save/restore CPU flags in Engine::stepBlock() anymore. --- src/engine/Engine.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 6b2e332d..31e15092 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -476,7 +476,6 @@ void Engine::stepBlock(int frames) { std::lock_guard stepLock(internal->blockMutex); SharedLock lock(internal->mutex); // Configure thread - uint32_t csr = _mm_getcsr(); system::initCpuFlags(); random::init(); @@ -519,9 +518,6 @@ void Engine::stepBlock(int frames) { internal->meterTotal = 0.0; internal->meterMax = 0.0; } - - // Reset MXCSR back to original value - _mm_setcsr(csr); }