flat assembler
Message board for the users of flat assembler.
Index
> Main > What is the fastest instruction to increment eaxregister? Goto page Previous 1, 2 |
Author |
|
sinsi 05 Feb 2013, 02:50
We did some tests on another forum, the results were...unsatisfying.
Pre-P4: inc was a bit faster over millions of iterations P4: inc was a lot slower Post-P4: practically the same Most AMDs: inc was a bit faster "practically/a bit/a lot" means you couldn't tell the difference in the Read World Of course, you can use LEA ECX,[ECX+1] to inc without affecting any flags. |
|||
05 Feb 2013, 02:50 |
|
revolution 05 Feb 2013, 10:46
shutdownall wrote: I wonder if ARM has still an inc or dec instruction - not sure about it. |
|||
05 Feb 2013, 10:46 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.