diff options
author | Werner Schweer <ws.seh.de> | 2007-04-17 14:14:54 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2007-04-17 14:14:54 +0000 |
commit | 5cb6baa63ddc339a2136957966ba20734c03ada6 (patch) | |
tree | a441ef4ddf522a60189326c28ada638a7719e690 /muse/plugins | |
parent | db3fbd2faa043a1f14b1ec80486673cc169e8dcd (diff) |
optimizations
Diffstat (limited to 'muse/plugins')
-rw-r--r-- | muse/plugins/freeverb/denormals.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/muse/plugins/freeverb/denormals.h b/muse/plugins/freeverb/denormals.h index d18412b4..37d3ed27 100644 --- a/muse/plugins/freeverb/denormals.h +++ b/muse/plugins/freeverb/denormals.h @@ -15,12 +15,22 @@ // signal processing applications // (ws) +#if 0 #define undenormalise(sample) \ { \ float anti_denormal = 1e-18; \ sample += anti_denormal; \ sample -= anti_denormal; \ } +#endif + +// from beast-0.7.2 (Tim Janik/Stefan Westerfeld): + +#define undenormalise(sample) \ + do { \ + volatile float __forced_float = 1e-29 + sample; \ + sample = __forced_float - 1e-29; \ + } while (0) #endif//_denormals_ |