[Tinyos-help] about float and big integers
Raffaele Gravina
raffaele.gravina at gmail.com
Fri Jul 10 08:20:35 PDT 2009
Yeah, you are right! It was not clear. Btw, yes, I use tmote nodes so,
that's fine! I'll try with the long long.
Thanks,
Raf
2009/7/10 Alan Marchiori <alan at alanmarian.com>
> On Thu, Jul 9, 2009 at 12:48 PM, Raffaele
> Gravina<raffaele.gravina at gmail.com> wrote:
> > Hi there,
> > I have a piece of code that does a lot of summation and products on a
> > variable: I know it will overflow the uint32_t.
> > Now, is there a way to create (or emulate) a new type like uint64_t?!
> > Also, i wonder if the floats in tinyos are 16 or 32 bits.
> > Thanks,
> >
>
> without knowing what mote you are using no one can answer you.
>
> for the MSP430 MCU (telos, and others): it supports a "long long"
> datatype (64 bits) uint64_t should be already defined .. floats are 32
> bits.
>
> for other MCUs I have no idea.
>
> your question is not about tinyos (it uses whatever datatypes are
> available) but rather about the hardware platform you are using.
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090710/d741c3f3/attachment.htm
More information about the Tinyos-help
mailing list