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 16:51, Charles Wilson wrote:
> Corinna Vinschen wrote:
> Now, suppose the receiving platform has _DOUBLE_IS_32BIT, but the
> sending platform does not (or vice versa).  No matter what kind of
> translation you do under the hood, you're going to lose data and *not
> know about it*.
> 
> This is bad.
> 
> If you are trying to design a protocol to communicate between platforms
> with different ideas of what constitutes a 'double', then...don't send
> doubles.  Design a different protocol that only uses floats.

Ok.  I concur.


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]