[OLSR-users] OLSR Camera
Wed May 25 16:37:03 CEST 2005
never mind - babies and bits have incompatible shift operators AFAIK.
""Andreas Tønnesen"" <(spam-protected)> schrieb im Newsbeitrag
> bah... what am I talking about... sorry for all this nonsene. This
> is what happens when you get right out of bed at 14:30 and start
> trying to think bits and bytes after a night of baby crying. I'll
> fix this stuff and stop spamming the list ;)
> - andreas
> Andreas Tønnesen wrote:
>> Ups... I was a bit too fast on the trigger there :) It is of cause 2^n
>> and not the other way around. So we ned a pow one way or the other.
>> But perhaps I'll add a internal pow function.
>> - Andreas
>> Andreas Tønnesen wrote:
>>> Sven-Ola Tuecke wrote:
>>>> - No function "real pow(real, real)". What's that stuff in mantissa.c!?
>>>> Replaced the pow(2,b) with (1 << b), seems to work OK.
>>>> Is it really necessary to fiddle with reals here?
>>> No, it's not nessecarry to use the pow(3) function here. The mantissa
>>> stuff was a bit of trial and error(and some cut'n paste from here and
>>> there I suspect) when I implemented it, and I used pow(3) for platform
>>> indenpendency regarding endianness I guess. But it is not nesecarry and
>>> bitshifting will do the job just fine. I'll clean it up(and probably get
>>> rid of the math dependency in the process).
>>> - Andreas
> Andreas Tønnesen
> olsr-users mailing list
More information about the Olsr-users