From: Skybuck Flying on
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
First learn to program correct benchmarks ! HAHAHA.

Bye,
Skybuck.


From: Skybuck Flying on
Woops wrong subthread...


First  |  Prev  | 
Pages: 1 2
Prev: Skybuck presents Faster Div 7
Next: begginer question