[fpc-pascal]Re: How to convert between double and extended? (Mattias Gaertner)
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Aug 15 12:57:46 CEST 2004
On Sun, 15 Aug 2004 12:48:22 +0200 Florian Klaempfl <F.Klaempfl at gmx.de>
wrote:
> Mattias Gaertner wrote:
>
> > 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? :)
>
> No. It was an offer :) I was only asking because I guess I've some
> experience with messing with floats :)
Then please start.
In the meantime, I will improve the DefineProperties in the LCL for mac os
x.
Mattias
More information about the fpc-pascal
mailing list