[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 Dec 19 14:52:55 CET 2021



> 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.


More information about the fpc-devel mailing list