From b0546e5e7f7044019892543c6c82029db8d564a7 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Thu, 15 Sep 2011 12:14:55 +0000 Subject: moved attic to a branch of it's own --- .../plugins/freeverb/denormals.h | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 attic/muse_qt4_evolution/plugins/freeverb/denormals.h (limited to 'attic/muse_qt4_evolution/plugins/freeverb/denormals.h') diff --git a/attic/muse_qt4_evolution/plugins/freeverb/denormals.h b/attic/muse_qt4_evolution/plugins/freeverb/denormals.h deleted file mode 100644 index 37d3ed27..00000000 --- a/attic/muse_qt4_evolution/plugins/freeverb/denormals.h +++ /dev/null @@ -1,38 +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) - -#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_ - -//ends - -- cgit v1.2.3