[fpc-pascal]Re: How to convert between double and extended? (Mattias Gaertner)
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Aug 15 12:32:06 CEST 2004
On Sun, 15 Aug 2004 12:27:10 +0200 Florian Klaempfl <F.Klaempfl at gmx.de>
wrote:
> Mattias Gaertner wrote:
> >>I suggest to reverse the byte at the PPC side, and to "stream" the
> >>doubles to the i386 box, and to assign the double there to an extended
> >>variable. In this case there is no need for a special conversion
> >>routine between double and extended since this is handled by the math
> >>co-processor automatically.
> >
> >
> > The problem is a binary stream format coming from the i386 object pascal
> > world, using extended and single, but no doubles. So I must be able to
> > create and read i386 10 bytes extended. It's ok to loose some precision.
>
> Shall I write some code?
Is this a trick question? :)
Mattias
More information about the fpc-pascal
mailing list