[fpc-devel] I've asked this before, but perhaps I wasn't specific enough that time: what do ...
J. Gareth Moreton
gareth at moreton-family.com
Sun Dec 19 17:28:26 CET 2021
To throw my hat into the ring, I'd be willing to help out with
developing some library routines. I did experiment once with using a
truncated and factorised MacLaurin series to calculate Double-precision
sin and cos simultaneously in native SSE2 (with sin and cos filling two
elements of the same register), mainly so one wouldn't be forced to use
the floating-point stack on 64-bit (the speed was about the same). For
128-bit though, I imagine it would have to be fully emulated, down to
how the mantissa and exponent are interpreted. I admit I haven't
studied the sfpu128 unit yet. If you need "log" and "exp" implmented in
software, if you can give me the exact requirements and specifications,
I'll see what I can do.
Gareth aka. Kit
On 19/12/2021 13:52, Florian Klämpfl via fpc-devel wrote:
>
>> 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.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the fpc-devel
mailing list