From aa02a21541ea248db7aca125b4dfd24c3477c7e2 Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Tue, 29 Dec 2020 15:07:09 +0100 Subject: [PATCH] FPE debug - Disable FE_UNDERFLOW FE_UNDERFLOW gives a fair amount of hits with LMMS but is of lower importance than the other tests and slows down debugging considerably. Commenting out for the time being. --- src/core/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/main.cpp b/src/core/main.cpp index 08599362ec8..e503184ab46 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -252,10 +252,11 @@ int main( int argc, char * * argv ) { #ifdef LMMS_DEBUG_FPE // Enable exceptions for certain floating point results + // FE_UNDERFLOW is disabled for the time being feenableexcept( FE_INVALID | FE_DIVBYZERO | - FE_OVERFLOW | - FE_UNDERFLOW); + FE_OVERFLOW /*| + FE_UNDERFLOW*/); // Install the trap handler // register signal SIGFPE and signal handler