From f59b8d8aca6cbb99110efe16e429caa77f9f3afd Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 8 Aug 2009 10:45:50 +0300 Subject: [PATCH] Missing file --- modules/audio_filter/spatializer/denormals.c | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/audio_filter/spatializer/denormals.c 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; +} -- 2.39.2