Re: [fpc-devel] Question to developers

2021-09-17 Thread Kirinn via fpc-devel
On Fri, 17 Sep 2021 16:55:05 +0100 "J. Gareth Moreton via fpc-devel" wrote: > Hi everyone, > > I have a question for third-party developers, especially mathematical, > scientific and games programmers... > > How often would you use a construct akin to "case x mod n of", where n > is a constan

Re: [fpc-devel] Question to developers

2021-09-17 Thread Travis Siegel via fpc-devel
Personally, I like the idea of having as much optimization as possible, but I'm likely in the minority here.  Since your original submission covered the (probably) most often used case, I'd say at this point, it's probably fine the way it is. On the other hand, depending on timing, (I.E. how l

[fpc-devel] Question to developers

2021-09-17 Thread J. Gareth Moreton via fpc-devel
Hi everyone, I have a question for third-party developers, especially mathematical, scientific and games programmers... How often would you use a construct akin to "case x mod n of", where n is a constant and not a power of 2?  I ask because while I wait for my "(x mod n) = 0" optimisation t