|
Prev: Skybuck presents Faster Div 7
Next: begginer question
From: Skybuck Flying on 24 Apr 2008 11:14 Well he not really correct. Sometimes it's faster, sometimes it's slower. I tried the div 7 version as well... it becomes slower... for small range and big range. So it's not an improvement, it's bad. "Skybuck Flying" <BloodyShame(a)hotmail.com> wrote in message news:1c082$48109d0e$541983fa$29593(a)cache4.tilbu1.nb.home.nl... > Hmm it's interesting to see that the dude was correct. > > By swapping around the additions it becomes a little bit faster: > > // faster code: > > // main algorithm > while Content > vBiggerDivisor do // latency 1 + latency 1 = latency 2 > begin > vDivisions := (Content shr vShifter); // latency 1 + latency 1 = latency > 2 > result := result + vDivisions; // latency 1 > Content := (Content and vAnder) + vDivisions * vDivisorDifference; // > latency 1 + latency 1 = latency 2 > end; > > WEIRD ?! > Bye, Skybuck ;)
From: Skybuck Flying on 24 Apr 2008 11:20 First learn to program correct benchmarks ! HAHAHA. Bye, Skybuck.
From: Skybuck Flying on 24 Apr 2008 11:26
Woops wrong subthread... |