On Aug 29, 11:13 am, "Skybuck Flying" <s...@hotmail.com> wrote:
> Well I just had an idea which might be interesting after all:
>
> 64 bit emulated mul and div are probably slow.
>
> So if it's possible to switch to 32 bit maybe some speed gains can be
> achieved !
>
> So for addition and subtraction the 64 bit emulated versions are always
> called.
>
> But for multiplication and division the 32 bit version might be called when
> possible and the 64 bit emulated version when absolutely necessary.
>
> I shall inspect what Delphi does for 64 bit (<-emulated) multiplication and
> division ;)
>
> Bye,
> Skybuck.
What are you multiplying and dividing by?
If you're multiplying by or dividing by powers of 2, bit shifts are
much faster than multiplications or divisions.