Floating point support is available, but it is not fast. GCC has supported floating point ops for both avr and MSP430; fancy floating point functions (trig, exp, log, etc.) are available through libm.
Cheers, Rob On 3/22/06, Sumit Rangwala <[EMAIL PROTECTED]> wrote: > Hi > Is floating point arithmetic available for avr and msp430 > processor. None of them have hardware for floating point, > however does the compiler (or libraries) provide support > for it. I > was modifying my code (which probably would be used on micaz > or tmote) and was wondering if code like this would give > expected results. > > float mfactor = 0.75; > rate = rate *mfactor; > > I am looking for accuracy upto 10^-4 or 10^-5 > > > Thanks > Sumit > > > > -- > We act as though comfort and luxury were the chief > requirements of life, when all that we need to make > us happy is something to be enthusiastic about. > Charles Kingsley > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
