Re: Faster Frac() imlementation?



Hello Anybody,

<buramu@xxxxxxxxx> schrieb im Newsbeitrag
news:be989259-7f51-48f7-8c4d-914b91824dee@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
....
For linear interpolation, which I frequently need to do, I typically
have to apply the Ceil and the Frac functions. The Fastcode Ceil
functions have helped me improve performance significantly..

Does something faster for Frac also exist? (My own silly basm
experiments all turned out slower than the RTL Frac :-)

Any help greatly appreciated. Thanks!

Change all to integer-mathematics, than you don't need ceil or frac.
(my crystal ball is broken, show me the code ;-)

mfg.
Herby

--
http://www.hubert-seidel.de


.



Relevant Pages

  • Faster Frac() imlementation?
    ... audio application for the Asus EEE pc (a little notebook with a modest ... have to apply the Ceil and the Frac functions. ... The Fastcode Ceil ... Does something faster for Frac also exist? ...
    (borland.public.delphi.language.basm)
  • Re: String Result
    ... procedure ExpandFloat(Value: Extended; out Ceil: Integer; out Floor: ... procedure ExpandFloat(Value: Extended; out Ceil: Int64; out Floor: ... I was not using any FPU instructions, because the most part of the code to calculate Rnd, Ceil, Floor, Frac is redundant; calculating them together is very fast. ...
    (borland.public.delphi.language.basm)
  • Combined Floor Ceil & Frac routine?
    ... I'm not very much into fp math asm..perhaps one of you guys can answer this ... I've often been using floor, ceil and frac with the same variable.. ...
    (borland.public.delphi.language.basm)