[fpc-devel] soft-fpu
Sven Barth
pascaldragon at googlemail.com
Wed Jul 10 23:55:23 CEST 2024
Martin Frb via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Mi.,
10. Juli 2024, 19:21:
> Any hints on using unit SoftFpu? (or any alternative)
>
> I have an 80 bit float (from an external source) that needs to be
> converted to double.
>
> But if I do
> uses softfpu, ufloatx80
>
> then I get
> Error: Multiple defined symbol "INT32_TO_FLOAT64"
>
> and many more...
>
The SoftFpu unit is only intended for use by the compiler. If you want to
use 80-bit floating point yourself you need to use ufloat80 and sfpux80
(the later wraps the same include files as SoftFpu, but for use by the
user).
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20240710/3d1c832f/attachment.htm>
More information about the fpc-devel
mailing list