Re: [fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

2018-05-01 Thread Sven Barth via fpc-devel
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

Re: [fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

2018-05-01 Thread J. Gareth Moreton
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;

Re: [fpc-devel] Fppkg web-client

2018-05-01 Thread Joost van der Sluis
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

Re: [fpc-devel] What's the status of Maciej's Smart Pointer enhancements?

2018-05-01 Thread Maciej Izak
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

Re: [fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

2018-05-01 Thread J. Gareth Moreton
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

Re: [fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

2018-05-01 Thread Jonas Maebe
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

Re: [fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

2018-05-01 Thread J. Gareth Moreton
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

Re: [fpc-devel] Broken frac functionin FPC3.1.1 / Windows x86_64

2018-05-01 Thread J. Gareth Moreton
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