[fpc-pascal] fpc 32 / 64 bit / c++/ floating point question

Vinzent Höfler JeLlyFish.software at gmx.net
Sun Nov 21 19:02:58 CET 2010


On Sun, 21 Nov 2010 18:54:13 +0100, Helmut Hartl <helmut.hartl at 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.


Vinzent.



More information about the fpc-pascal mailing list