From c562fb51b480cbf5d6da0ca990063662bdc8f355 Mon Sep 17 00:00:00 2001 From: bsp2 Date: Sat, 27 Oct 2018 12:24:15 +0200 Subject: [PATCH] Linux: set FPU rounding mode (zero) --- src/vst2_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vst2_main.cpp b/src/vst2_main.cpp index 72547ae6..f5d6fa32 100644 --- a/src/vst2_main.cpp +++ b/src/vst2_main.cpp @@ -147,6 +147,7 @@ struct PluginMutex { #include #include #include +#include // fesetround() // #define _GNU_SOURCE #include @@ -1190,6 +1191,10 @@ void VSTPluginProcessReplacingFloat32(VSTPlugin *vstPlugin, _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); #endif // HAVE_WINDOWS +#ifdef YAC_LINUX + fesetround(FE_TOWARDZERO); +#endif // YAC_LINUX + sUI chIdx; if(wrapper->b_idle)