On Nov 7, 2014 8:23 AM, "John Van Ostrand" <[email protected]> wrote:
>
> Are floats portable enough to reference directly, like this:
>
> start_cns = *(float *) buf;

Aside from byte ordering and alignment, generally yes. There are some
random small details like denormals that different architecture might
handle differently (round to zero etc), but that won't be an issue for any
dive data.

And in theory other representations than just the standard IEEE one exists,
but in practice no current hardware uses it, so it's not worth worrying
about.

    Linus
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to