[Tinyos-devel] external (nx*) types and floating point

David Gay dgay42 at gmail.com
Mon May 5 10:30:25 PDT 2008


On Mon, May 5, 2008 at 9:28 AM, Vlado Handziski
<handzisk at tkn.tu-berlin.de> wrote:
> I think I lost you there. What do you understand under MCU specific
> nx_float/nx_double definitions? How the serialization is implemented? Cause
> the whole point of nx_* was to provide platform independent types, so the
> "semantics" of the type should be the same all over, isn't it?

The platform-independent rep of floating point types would be the
standard IEEE 32 (or 64) bit floating point formats, in some standard
bit order. The platform-specific code would convert to/from that rep
(I can't think of any efficient, or even practical, way to write that
code in a platform-independent way).

David


More information about the Tinyos-devel mailing list