[Tinyos-help] about float and big integers

Alan Marchiori alan at alanmarian.com
Fri Jul 10 07:56:59 PDT 2009


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.


More information about the Tinyos-help mailing list