[fpc-devel] Possible bug in fpc_round_real for softfloat?
Alexander Hofmann
alexander.hofmann at new-h.de
Wed Feb 19 12:16:48 CET 2020
Hi,
Am 19.02.20 um 09:08 schrieb thaddy:
> Raspberry Pi, what OS, because you write armsf and the default on
> Raspbian (and other major distro's) is armhf.
Raspbian, which is armhf, yes.
The application is based on the hard-float ABI (just checked with
readelf -h). Still it is using the soft-float implementation at least
for round().
I came across this by debugging the application at assembly level and
saw the call of fpc_round_real(). I don't know very much about the ARM
instruction set. I reckon there's "round to integer" available but I
don't know in which version of the ARM specification, and if it's used
in FPC.
Also, I have to check if I accidentally activated the "-Ce" switch,
although I though I checked that...
In the end, as I was able to reproduce the error on Linux x86_64, I
though I'd better ask. Last time I dealt specifically with floating
point emulation was on DOS with Turbo Pascal :-)
Best,
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200219/b6953002/attachment.sig>
More information about the fpc-devel
mailing list