[fpc-devel] I've asked this before, but perhaps I wasn't specific enough that time: what do ...
Florian Klämpfl
florian at freepascal.org
Sun Jan 16 20:35:13 CET 2022
Am 19.12.21 um 14:52 schrieb Florian Klämpfl:
>
>
>> Am 19.12.2021 um 14:38 schrieb Jonas Maebe via fpc-devel <fpc-devel at lists.freepascal.org>:
>>
>> On 19/12/2021 14:21, Nikolai Zhubr via fpc-devel wrote:
>>> Just out of curiosity, couldn't bochs' x87 fpu implementation be of some use here?
>>> It is approx 12k of C code and it is LGPL. Supposedly it is not fast but conformant.
>>> Or does it need to be (re-)implemented in Pascal itself?
>>> (Not implying it would be easy anyway, but still)
>>
>> Note that FPC needs LGPL + static linking exception (the softfloat units are in the RTL).
>
> Nikolai might be right, looking at it’s license it seems usable:
>
> https://github.com/lubomyr/bochs/blob/master/cpu/fpu/fsincos.cc
>
> Same as the softfloat code we use it seems.
>
I started a first translation and committed it to
https://gitlab.com/freepascal.org/fpc/source/-/tree/floatx80funcs
More information about the fpc-devel
mailing list