From: RĂ©mi Denis-Courmont Date: Sat, 8 Aug 2009 07:45:50 +0000 (+0300) Subject: Missing file X-Git-Tag: 1.1.0-ff~4507 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f59b8d8aca6cbb99110efe16e429caa77f9f3afd;p=vlc Missing file --- diff --git a/modules/audio_filter/spatializer/denormals.c b/modules/audio_filter/spatializer/denormals.c new file mode 100644 index 0000000000..0477f72e81 --- /dev/null +++ b/modules/audio_filter/spatializer/denormals.c @@ -0,0 +1,21 @@ +// 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 + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include "denormals.h" + +/* fpclassify() is C99, cannot be compiled into a C++90 file (on some systems) */ +float undenormalise( float f ) +{ + if( fpclassify( f ) == FP_SUBNORMAL ) + return 0.0; + return f; +}