Re: Is je more effective than jg




leon800219@xxxxxxxxx wrote:
Hi all:

I wonder is jne more effective than jbe, if so why?

The statement:
for(i=0;i<=10;++i)
{
}
seems slower than:
for(i=0;i!=10;++i)
{
}


Have you considered that the first loop is executed 11 times and the
second 10?

.



Relevant Pages

  • Re: Is je more effective than jg
    ... I wonder is jne more effective than jbe, ... seems slower than: ... Have you considered that the first loop is executed 11 times and the ...
    (alt.lang.asm)
  • Re: Is je more effective than jg
    ... I wonder is jne more effective than jbe, ... seems slower than: ... Ratch ...
    (alt.lang.asm)
  • Re: Is je more effective than jg
    ... I wonder is jne more effective than jbe, ... seems slower than: ... So the real difference is: ...
    (alt.lang.asm)
  • Re: Is je more effective than jg
    ... I wonder is jne more effective than jbe, ... seems slower than: ... Have you considered that the first loop is executed 11 times and the ...
    (alt.lang.asm)
  • Re: Is je more effective than jg
    ... I wonder is jne more effective than jbe, ... flags simultaneously, then JG will be the slower instruction. ...
    (alt.lang.asm)