summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/plugins/freeverb/denormals.h
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-09-15 12:14:55 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-09-15 12:14:55 +0000
commitb0546e5e7f7044019892543c6c82029db8d564a7 (patch)
tree1b96a6260900f3fbf3513fb48a5a72aa89052dc8 /attic/muse2-oom/muse2/plugins/freeverb/denormals.h
parent583c73d1a07154d3d2672d65d8cce6495f490454 (diff)
moved attic to a branch of it's own
Diffstat (limited to 'attic/muse2-oom/muse2/plugins/freeverb/denormals.h')
-rw-r--r--attic/muse2-oom/muse2/plugins/freeverb/denormals.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/attic/muse2-oom/muse2/plugins/freeverb/denormals.h b/attic/muse2-oom/muse2/plugins/freeverb/denormals.h
deleted file mode 100644
index d18412b4..00000000
--- a/attic/muse2-oom/muse2/plugins/freeverb/denormals.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// Macro for killing denormalled numbers
-//
-// Written by Jezar at Dreampoint, June 2000
-// http://www.dreampoint.co.uk
-// Based on IS_DENORMAL macro by Jon Watte
-// This code is public domain
-
-#ifndef _denormals_
-#define _denormals_
-
-// this does not work with at least gcc3.3 and -O2:
-// #define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
-//
-// from Laurent de Soras Paper: Denormal numbers in floating point
-// signal processing applications
-// (ws)
-
-#define undenormalise(sample) \
- { \
- float anti_denormal = 1e-18; \
- sample += anti_denormal; \
- sample -= anti_denormal; \
- }
-
-#endif//_denormals_
-
-//ends
-