This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]