[SCM] pd-bsaylor/master: Upstream patch to prevent denormals
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Mon Feb 22 19:26:47 UTC 2016
The following commit has been merged in the master branch:
commit e5ab5db42b5100e5226ee7d1050ab597e5d7aa21
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Mon Feb 22 20:01:02 2016 +0100
Upstream patch to prevent denormals
diff --git a/debian/patches/denormals_fixes.patch b/debian/patches/denormals_fixes.patch
new file mode 100644
index 0000000..bb4572c
--- /dev/null
+++ b/debian/patches/denormals_fixes.patch
@@ -0,0 +1,22 @@
+Description: clamp excess floats to sane values to prevent denormal exceptions
+Origin: https://svn.code.sf.net/p/pure-data/svn/trunk/externals/bsaylor@17463
+Last-Update: 2016-02-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- pd-bsaylor.orig/svf~.c
++++ pd-bsaylor/svf~.c
+@@ -56,9 +56,11 @@
+ in = sv->qnrm * in ;
+ for (i=0; i < F_R; i++) {
+ // only needed for pentium chips
+- // OLD VERSION
+- in = FLUSH_TO_ZERO(in);
+- sv->l = FLUSH_TO_ZERO(sv->l);
++ if(PD_BIGORSMALL(in)) in = 0.;
++ if(PD_BIGORSMALL(sv->l)) sv->l = 0.;
++ // OLD VERSION
++ //in = FLUSH_TO_ZERO(in);
++ //sv->l = FLUSH_TO_ZERO(sv->l);
+ // new versions, thanks to Damon Chaplin, inserted by Ed Kelly, not yet working!!!
+ //in = ((int)in & 0x7f800000)==0?0.0f:in;
+ //sv->l = ((int)sv->l & 0x7f800000)==0?0.0f:sv->l;
diff --git a/debian/patches/series b/debian/patches/series
index 54d9c40..8e22676 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
64bit_fixes.patch
+denormals_fixes.patch
nonlinux_fixes.patch
--
pd-bsaylor packaging
More information about the pkg-multimedia-commits
mailing list