This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Add XDR support (only built #if cygwin, for now)
2010/2/26 Corinna Vinschen:
> Yes, I guess so, unless we have generic code to convert 32 bit to 64 bit
> FP and vice versa. ?Does anybody know?
I wrote once such a beast for parrot, which is fast on the bit-level,
and converts from-to
32-bit/64-bit,
big-little endian,
4-byte single float, 8 byte double, 12 byte long double intel, 16 byte
long double rest
http://trac.parrot.org/parrot/browser/trunk/src/packfile/pf_items.c
(+ http://trac.parrot.org/parrot/ticket/387 for 4byte single float support)
But easiest is to printf to string and scanf the string if there are
any architectural differences..
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/