All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hamish Moffatt <hamish@cloud.net.au>
To: Linux-hams List <linux-hams@vger.kernel.org>
Subject: Re: Re gmfsk compile
Date: Sun, 8 Jan 2006 13:15:37 +1100	[thread overview]
Message-ID: <20060108021537.GA16068@cloud.net.au> (raw)
In-Reply-To: <43C02C48.6020409@bigpond.com>

On Sun, Jan 08, 2006 at 07:02:00AM +1000, David wrote:
> Hi All.......Tomi has stolen some of my thunder.......with Mandriva 
> Linux 2006...you should use 0.7pre1......BUT make sure you have all the 

I'll go you one better; here's a patch you can apply to 0.6 to make it
compile on gcc 4.0. We use this on Debian.

diff -urN ../tmp-orig/gmfsk-0.6/src/mt63/dsp.h ./src/mt63/dsp.h
--- ../tmp-orig/gmfsk-0.6/src/mt63/dsp.h	2004-07-08 19:21:26.000000000 +0200
+++ ./src/mt63/dsp.h	2004-10-01 11:42:42.678361264 +0200
@@ -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,


Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

      reply	other threads:[~2006-01-08  2:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-07 21:02 Re gmfsk compile David
2006-01-08  2:15 ` Hamish Moffatt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060108021537.GA16068@cloud.net.au \
    --to=hamish@cloud.net.au \
    --cc=linux-hams@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.