diff options
Diffstat (limited to 'src/iemlib1/sigprvu.c')
-rw-r--r-- | src/iemlib1/sigprvu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iemlib1/sigprvu.c b/src/iemlib1/sigprvu.c index bb4b72a..07c4cff 100644 --- a/src/iemlib1/sigprvu.c +++ b/src/iemlib1/sigprvu.c @@ -160,7 +160,7 @@ static void sigprvu_tick_metro(t_sigprvu *x) x->x_old_peak *= c1; /* NAN protect */ - if(PD_BADFLOAT(x->x_old_peak)) + if(IEM_DENORMAL(x->x_old_peak)) x->x_old_peak = 0.0f; if(x->x_cur_peak > x->x_old_peak) @@ -191,7 +191,7 @@ static void sigprvu_tick_metro(t_sigprvu *x) cur_rms = (1.0f - c1)*x->x_sum_rms*x->x_rcp + c1*x->x_old_rms; /* NAN protect */ - if(PD_BADFLOAT(cur_rms)) + if(IEM_DENORMAL(cur_rms)) cur_rms = 0.0f; if(cur_rms <= 0.0000000001f) |