Thanks.

Jari


On 1/29/10 4:07 PM, Ron Jensen wrote:
> On Fri, 2010-01-29 at 15:34 +0100, Anders Gidenstam wrote:
>> On Fri, 29 Jan 2010, Jari Häkkinen wrote:
>>
>>> Ok, and then the final step is the bits.test(bar,0). I spent a couple of
>>> minutes searching the web but could not find docs for the bits.test
>>> function. I assume bits.test(oddnumber,0) returns 1 and something else
>>> for even numbers, presumably 0?
>>
>> You'll find bits.test() in Nasal/bits.nas (it is an FG local extension to
>> the Nasal bits module).
>> The return value is true (i.e.<>0) or false (i.e. ==0), I would not dare
>> to assume that 1 is always returned for true.
>>
>> Cheers,
>>
>> Anders
>
> Right,
> bits.test(n,b)
> # checks whether bit<b>  is set in number<n>
>
> So bits.test(oddnumber,0) is actually a test for oddness. the 0th bit
> being the only bit that is not a power of two.
>
> Ron
>
>
>
>
>> ---------------------------------------------------------------------------
>> Anders Gidenstam
>> WWW: http://www.gidenstam.org/FlightGear/
>> ------------------------------------------------------------------------------
>>  The Planet: dedicated and managed hosting, cloud storage, colocation Stay 
>> online with enterprise data centers and the best network in the business 
>> Choose flexible plans and management services without long-term contracts 
>> Personal 24x7 support from experience hosting pros just a phone call away. 
>> http://p.sf.net/sfu/theplanet-com
>> _______________________________________________
>> Flightgear-devel mailing list
>> Flightgear-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to