Add XDR support (only built #if cygwin, for now)

Corinna Vinschen
Fri Feb 26 19:50:00 GMT 2010

On Feb 26 13:52, Charles Wilson wrote:
> Corinna Vinschen wrote:
> > If _DOUBLE_IS_32BITS is set, call xdr_float from xdr_double.
> Hmmm...actually, I think this is wrong.  The XDR stream format of a
> double is supposed to be universal, and is 8 bytes long. If I have an

Good point.  The IEEE float and double formats are well known, though,
so shouldn't it be quite simple to convert a 32 bit IEEE float into 64
bit and vice versa?  Well, that's going a step too far for now, I guess,
but it spoils interoperability a bit.

> I think in this case double support should just be removed.

Yes, I guess so, unless we have generic code to convert 32 bit to 64 bit
FP and vice versa.  Does anybody know?


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the Newlib mailing list