Skip to content

Commit

Permalink
FPE debug - Disable FE_UNDERFLOW
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zonkmachine committed Dec 30, 2020
1 parent a058047 commit aa02a21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa02a21

Please sign in to comment.