[vlc-devel] commit: Missing file ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Aug 8 09:46:29 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug  8 10:45:50 2009 +0300| [f59b8d8aca6cbb99110efe16e429caa77f9f3afd] | committer: Rémi Denis-Courmont 

Missing file

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f59b8d8aca6cbb99110efe16e429caa77f9f3afd
---

 modules/audio_filter/spatializer/denormals.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/modules/audio_filter/spatializer/denormals.c b/modules/audio_filter/spatializer/denormals.c
new file mode 100644
index 0000000..0477f72
--- /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 <config.h>
+#endif
+
+#include <math.h>
+#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;
+}




More information about the vlc-devel mailing list