Re: Fast fmodf(..., 1.0f)



On Jun 30, 12:44 am, "jason.cipri...@xxxxxxxxx"
<jason.cipri...@xxxxxxxxx> wrote:

Because it's a measured bottleneck in a performance-critical inner
loop... nothing premature about that...


I know the relative range of the values, I should have mentioned that.
I don't know exactly what it can be but I can guarantee it won't
exceed INT_MAX. And I'm not using this method anyways.

It is unlikely that your real problem is "calculate x mod 1 for a
gazillion different values of x". It is highly likely that looking at
the problem from a higher level will produce a faster solution by
looking at things from a completely different angle. So you should
post what you _really_ want to achieve.
.



Relevant Pages

  • Re: Confused-finishing 2.6.2 install
    ... I read the documentation and followed it though to ... My real problem is I have no idea where the ... >> this is my first time compiling a kernel and it was going so smoothly. ... You have to have the "loop" module loaded or ...
    (Fedora)
  • Re: replacement for __file__ in compiled exe
    ... replacement or something else you can do? ... How can you *ever* guarantee that the current directory is the same as ... etc. Isn't the real problem how to find out which directory the ... your question is a little unclear. ...
    (comp.lang.python)
  • file changes monitor
    ... I have seen that the program consumes too many computer resources and I want ... real problem is with the main while loop. ... I know that I could put the program to sleep for a while, ...
    (perl.beginners)
  • Re: MDC HO and HOn3 Shays?
    ... of the loop for a few years so excuse my ignorance on where to look. ... My only real problem was with the trucks coming ...
    (rec.models.railroad)
  • well, what I was hoping to accomplish...
    ... and the loop will run through 3 or 4 times a second. ... But thanks for the info Rob. ... Now describe your real problem. ... Instead of using FloatToStr, try this: ...
    (alt.comp.lang.borland-delphi)