On 02 Nov 2010, at 21:39, Felipe Monteiro de Carvalho wrote:
> On Tue, Nov 2, 2010 at 7:04 PM, Bo Berglund <bo.bergl...@gmail.com> wrote:
>> Thanks, that helps a lot! Are there also overloaded BEtoN functions
>> for floating point values?
>
> I think that single and double have always the same binary layout.
That's incorrect, their endianess changes in the same way as that of integer
data (except on ARM when using the FPA floating point unit, which uses its own
special byte ordering).
There are no overloads of BEtoN() etc for floating point types in the system
unit. You can convert them by putting them in a variant record with an overlaid
floating point and integer field of the same size, and then swapping the
integer field.
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal