pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/ham/gmfsk/patches Added patch-af to fix syntax error i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf42c47a087c
branches:  trunk
changeset: 522871:cf42c47a087c
user:      wulf <wulf%pkgsrc.org@localhost>
date:      Thu Dec 28 11:52:31 2006 +0000

description:
Added patch-af to fix syntax error in src/mt63/dsp.h

diffstat:

 ham/gmfsk/patches/patch-af |  23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r e9408d1491f2 -r cf42c47a087c ham/gmfsk/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/gmfsk/patches/patch-af        Thu Dec 28 11:52:31 2006 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-af,v 1.1 2006/12/28 11:52:31 wulf Exp $
+
+--- src/mt63/dsp.h.orig        2004-07-09 02:51:26.000000000 +0930
++++ src/mt63/dsp.h     2006-12-28 21:19:05.000000000 +1030
+@@ -555,15 +555,15 @@
+  inline void LowPass2(typeInp Inp, LowPass2elem &Elem,
+               typeW W1, typeW W2, typeW W5)
+ { double Sum, Diff;
+-  Sum=Elem.Mid+Elem.Out; Diff=Elem.Mid-Elem.Out; Elem.Mid+=W2*Inp-W1*Sum; Out+=W5*Diff; }
++  Sum=Elem.Mid+Elem.Out; Diff=Elem.Mid-Elem.Out; Elem.Mid+=W2*Inp-W1*Sum; Elem.Out+=W5*Diff; }
+ 
+ template <class typeInp>
+  inline void LowPass2(typeInp Inp, LowPass2elem &Elem, LowPass2weight &Weight)
+ { double Sum, Diff;
+   Sum=Elem.Mid+Elem.Out;
+   Diff=Elem.Mid-Elem.Out;
+-  Elem.Mid+=Weight.W2*Inp-Weigth.W1*Sum;
+-  Out+=Weight.W5*Diff; }
++  Elem.Mid+=Weight.W2*Inp-Weight.W1*Sum;
++  Elem.Out+=Weight.W5*Diff; }
+ 
+ /*
+ inline void LowPass2(float Inp, double &Mid, double &Out,



Home | Main Index | Thread Index | Old Index