BEAST/BSE - Better Audio System and Sound Engine
0.8.2
|
00001 // Macro for killing denormalled numbers 00002 // 00003 // Written by Jezar at Dreampoint, June 2000 00004 // http://www.dreampoint.co.uk 00005 // Based on IS_DENORMAL macro by Jon Watte 00006 // This code is public domain 00007 #include <bse/bseplugin.hh> 00008 #include <bse/bseieee754.hh> 00009 00010 #ifndef _denormals_ 00011 #define _denormals_ 00012 00013 // #define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f 00014 #define undenormalise(sample) BSE_FLOAT_FLUSH (sample) 00015 00016 #endif//_denormals_ 00017 00018 //ends