J. Gareth Moreton schrieb am Di., 1. Mai 2018,
23:39:
> It turns out I did over-engineer the solution somewhat - this version is
> far more efficient, honours NaNs and triggers SIGFPE if infinity is passed
> in (subsd triggers it), hence there are no regressions.
>
>
>
> function fpc_frac_re
It turns out I did over-engineer the solution somewhat - this version is
far more efficient, honours NaNs and triggers SIGFPE if infinity is passed
in (subsd triggers it), hence there are no regressions.
function fpc_frac_real(d: ValReal): ValReal; compilerproc; assembler;
nostackframe;
Hi all,
I've the web-client for managing fppkg-packages in a web client running.
I've added some packages and will add some more in the future.
It is possible to add your own packages if you want to, if you want to
try, please contact me. I'll explain how to do so.
If you want to use the fp
2018-04-30 21:30 GMT+02:00 Michael Van Canneyt :
> I can imagine that checking such a field will be more fast than actually
>>> calling a routine. This is just a thought, if you had already considered
>>> such a thing, I would like to hear why you discarded it, for my
>>> education.
>>>
>>
>>
>> t
On Tue 01/05/18 20:11 , Jonas Maebe
jo...@freepascal.org sent:
> On 01/05/18 21:06, J. Gareth Moreton
wrote:
>
> > I asked about the rules regarding
>
> > infinities, but going by what happens
with
>
> > the old floating-point stack, an
exception
>
> > is raised,
>
>
>
> The code also
On 01/05/18 21:06, J. Gareth Moreton wrote:
I asked about the rules regarding
infinities, but going by what happens with
the old floating-point stack, an exception
is raised,
The code also has to work if exceptions are disabled.
Jonas
___
fpc-devel
As Sven pointed out, there are still
faults in our functions in that they don't
honour NaNs. It's an easy enough fix, but
will just need an extra bit of code.
I asked about the rules regarding
infinities, but going by what happens with
the old floating-point stack, an exception
is raised, so
I reopened the bug ticket to attach a patch with the new function. It also
contains some code for "Int" that passes through the input unchanged if its
magnitude is greater than 2^52 (at this point, the precision means it can't
have a fractional component). I've set it to "feedback" currently so S