[mythtv] [PATCH] DVB: Fix calc when local oscillator is above lnb freq range (C-band)

Tako Schotanus quintesse at palacio-cristal.com
Sat Jun 26 06:02:55 EDT 2004


Kenneth Aafløy wrote:

>On Saturday 26 June 2004 01:32, Isaac Richards wrote:
>  
>
>>On Friday 18 June 2004 07:20 am, Steve Brown wrote:
>>    
>>
>>> From scan/szap in linuxtv-dvb-apps.
>>>      
>>>
>>Applied to CVS.
>>    
>>
>
>http://cvs.mythtv.org/cgi-bin/viewcvs.cgi/mythtv/libs/libmythtv/dvbchannel.cpp?r1=1.24&r2=1.25
>
>I never got the gist of this patch. I might be stupid, drunk or anything else, 
>but I still don't get it. Steve, could you explain to me why...
>
>From libc manual page (i=abs):
>These functions are provided for obtaining the "absolute value" (or
>"magnitude") of a number.  The absolute value of a real number X is X
>if X is positive, -X if X is negative.
>
>Am I insane or is 'X negative' == '-X' and X==X?
>
>  
>
X : if X is positive
-X : if X is negative

let's say X = -5

-5 : if -5 is positive (nope)
-(-5) : if -5 is negative (yep)

So the final result is -(-5) which is 5

Or wasn't that what got you confused?

Cheers,
 -Tako



More information about the mythtv-dev mailing list