> Od: D. Richard Hipp [mailto:[EMAIL PROTECTED] > Wysłano: 18 sierpnia 2005 20:11 > Do: sqlite-users@sqlite.org > Temat: Re: [sqlite] Possible bug regarding endiannes and > realstorageclass (sqlite3) > > On Thu, 2005-08-18 at 09:40 -0700, Robert Simpson wrote: > > http://www.psc.edu/general/software/packages/ieee/ieee.html > > > > The way I interpreted this site, is that the IEEE standard for > > floating point numbers was processor agnostic and the > storage of the > > bits went from left to right. > > > > I wrote a test program to print out the byte values for 1.0 > and 1 on both ix86 (Intel, Linux) and powerpc (G5, OS-X). > The results: > > ix86: 000000000000f03f 0100000000000000 > powerpc: 3ff0000000000000 0000000000000001 > > This seems to validate the approach taken by SQLite, which is > to byteswap floating point values on ix86 machines.
CORBA CDR specification also clearly states that floating point numbers are byte swapped on different endian architectures: http://www.omg.org/docs/formal/04-03-01.pdf 15.3.1.3 "Floating Point Data Types" Fig 15.2 on page 535 Regards, Jarek