* Re: Re gmfsk compile
2006-01-07 21:02 Re gmfsk compile David
@ 2006-01-08 2:15 ` Hamish Moffatt
0 siblings, 0 replies; 2+ messages in thread
From: Hamish Moffatt @ 2006-01-08 2:15 UTC (permalink / raw)
To: Linux-hams List
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>
^ permalink raw reply [flat|nested] 2+ messages in thread