Hey guys

Hey guys,

I weird thing happened these days, I was checking the performance of "[Integer number] shl 1" against "[Integer number] * 2" operation and I have ran on unexpected results. When I run the code at https://gist.github.com/horaciojcfilho/271fdbf65d7a85599a27.

On 32-bit Windows compiler:
Multiplication is much faster than Shift Left <- The strange result :(
On 64-bit Windows compiler:
Shift Left is a little bit faster than Multiplication <- I expected the performance gap would be larger :(

Am I confusing? Is there anything related to Right Left on 32-bit systems that I don't know? I can't test it on Android because I runned it as a test of DUnitX.

Thanks :D

Comments