Am 21.11.10 19:02, schrieb Vinzent Höfler:
On Sun, 21 Nov 2010 18:54:13 +0100, Helmut Hartl<helmut.ha...@firmos.at>
wrote:
Running the above program gives
1) C++ / FPC 64 Bit
   6.3846106530
   6.3846106530
2) FPC32 Bit
   6.3846106530
   6.3846111610

Is this explainable or wrong behaviour ?
First suspect candidate: the intermediate results are calculated with
the 80-bit "temporary" float of the FPU on x86-32, while this is not
the case on the 64 bit target.
Thanks for the idea - Looking a bit (one eyed) at the generated code
this seems to be the most likely reason.
I just gave up on the idea of comparing c++ / and fpc's calculations
directly.

helmut
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to