[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programming questions



> From: "John Hainsworth, Unix System Management Utilities" <unx.dec.com!hains>
> Date: Tue, 22 Apr 97 10:35:57 -0400
> Is there any way to read in ints and floats at
> a decent speed in Limbo?  The only way I can
> find seems to involve undocumented functions
> bits32real(), bits64real(), realbits32(),
> and realbits64() in math.m.  What, exactly,
> do they do?

They're essentially type casts;  they take IEEE format
bit patterns (single or double) and convert to Limbo real.

These were tossed in at the last minute and undocumented
because I knew they weren't in final form.  Probably we'll
go with functions mapping an array of (big-endian) bytes
to and from an array of real.

Eric