[OLSR-users] OLSR Camera

Andreas Tønnesen (spam-protected)
Wed May 25 14:35:26 CEST 2005



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
http://www.olsr.org



More information about the Olsr-users mailing list